Skip to content

Commit

Permalink
012 Install/Enable Apache Server
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 12, 2020
1 parent 250022a commit 1782d43
Show file tree
Hide file tree
Showing 15 changed files with 966 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Container-c7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Commands run from inside the container as root

yum -y install httpd bind postfix cyrus-imapd* mod_ssl
systemctl enable httpd
systemctl start httpd

All updated/uploaded to repo: https://hop.a1z.us:5084/root_gap/container-c7-gap-a1z-us

[root@c7 app]# cp perlmojo/public/images/icons/*.png /var/www/html/images/icons

15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,20 @@ WORKDIR /app

RUN rm -rf /app/perlmojo; rm -rf /app/Dockerfile

COPY . /app
COPY ./perlmojo /app
COPY ./start_apps.sh /app/start_apps.sh

RUN rm -rf /app/Dockerfile; rm -rf /app/docker-run.sh; rm -rf /app/*.md; chmod +x /app/start_apps.sh;
RUN chmod +x /app/start_apps.sh;

RUN yum -y install httpd bind postfix cyrus-imapd* mod_ssl; rm -rf /etc/httpd/conf/httpd.conf; rm -rf /etc/httpd/conf.d/ssl.conf;

COPY ./apache/httpd.conf /etc/httpd/conf/httpd.conf
COPY ./apache/ssl.conf /etc/httpd/conf.d/ssl.conf

COPY ./apache/index.html /var/www/html/index.html
COPY ./apache/sw.js /var/www/html/sw.js
COPY ./apache/manifest.json /var/www/html/manifest.json
COPY ./apache/offline.html /var/www/html/offline.html

# expose ports
EXPOSE 80 443 22 3306 7310 7311 7312 7313 7314 7315 7316 7317 7318
Expand Down
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,43 @@ https://gap.a1z.us:7312/ OK but wrong certs ( expired )
https OK.
Mojolicious App home page improved - ok

5:52

Successfully built c8b3ebbb5a21
Successfully tagged a2zdotblue/c7-systemd-perl-mojo-02:latest
Stopping container a2zdocker
a2zdocker
Deleting container a2zdocker
a2zdocker
f46f07f71f9132c8997a8a041ce341f055af65d41b25c7813322010b58f3ae1b
logging in to a2zdocker
Attempting to create directory /root/perl5
[root@c7 app]# ./start_apps.sh
[Sat Jul 11 22:51:15 2020] [info] Listening at "http://*:80"
Server available at http://127.0.0.1:80
[Sat Jul 11 22:51:15 2020] [info] Listening at "https://*:443?cert=%2Fapp%2Fcerts%2Fcert2.pem&key=%2Fapp%2Fcerts%2Fprivkey2.pem"
Server available at https://127.0.0.1:443
[root@c7 app]#
[root@c7 app]# wget --spider --tries 1 https://gap.a1z.us:7312
Spider mode enabled. Check if remote file exists.
--2020-07-11 22:51:45-- https://gap.a1z.us:7312/
Resolving gap.a1z.us (gap.a1z.us)... 34.66.69.185
Connecting to gap.a1z.us (gap.a1z.us)|34.66.69.185|:7312... connected.
ERROR: cannot verify gap.a1z.us's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3’:
Unable to locally verify the issuer's authority.
To connect to gap.a1z.us insecurely, use `--no-check-certificate'.

[root@c7 app]# wget --no-check-certificate --spider --tries 1 https://gap.a1z.us:7312
Spider mode enabled. Check if remote file exists.
--2020-07-11 22:51:57-- https://gap.a1z.us:7312/
Resolving gap.a1z.us (gap.a1z.us)... 34.66.69.185
Connecting to gap.a1z.us (gap.a1z.us)|34.66.69.185|:7312... connected.
WARNING: cannot verify gap.a1z.us's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 7056 (6.9K) [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.

[root@c7 app]#

Loading

0 comments on commit 1782d43

Please sign in to comment.