Virtual Host And Certbot in RHEL7: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "==httpd.conf== <code>vim /etc/httpd/conf/httpd.conf</code> <source lang="ini" highlight="5" start="82" line> # ServerAdmin: Your address, where problems with the server should...")
 
Line 18: Line 18:
ServerName 100.43.10.200
ServerName 100.43.10.200
</source>
</source>
{|
| valign="top" |
<source lang="bash">
# mkdir -p /etc/httpd/conf.sites.d/
# mkdir -p /var/www/
# create folder inside /ihe mount point
mkdir -p /ihe/etc/httpd/conf.sites.d/
mkdir -p /ihe/var/www
</source>
| valign="top" |
<source lang="bash">
cd /ihe/var/www/;\
p='api cdn dev hl7';\
for s in $p;\
    do d='html docs soft';for f in $d;\
        do mkdir -p "$s.medisys.com.my/$f";\
    done;
done
</source>
| valign="top" |
<source lang="bash">
cd /ihe/var/www/;\
p='api cdn dev hl7';\
for s in $p;\
    do d='html docs soft';for f in $d;\
        do mkdir -p "$s.rufaida.com.my/$f";\
    done;
done
</source>
|}

Revision as of 01:57, 11 November 2019

httpd.conf

vim /etc/httpd/conf/httpd.conf

# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. [email protected]
#
ServerAdmin [email protected]
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
IncludeOptional /ihe/etc/httpd/conf.sites.d/*.conf

ServerName 100.43.10.200
# mkdir -p /etc/httpd/conf.sites.d/
# mkdir -p /var/www/


# create folder inside /ihe mount point
mkdir -p /ihe/etc/httpd/conf.sites.d/
mkdir -p /ihe/var/www
cd /ihe/var/www/;\
p='api cdn dev hl7';\
for s in $p;\
    do d='html docs soft';for f in $d;\
        do mkdir -p "$s.medisys.com.my/$f";\
    done;
done
cd /ihe/var/www/;\
p='api cdn dev hl7';\
for s in $p;\
    do d='html docs soft';for f in $d;\
        do mkdir -p "$s.rufaida.com.my/$f";\
    done;
done