Finished Cloud Apache Container
This commit is contained in:
53
configs/vhost-template.tpl
Normal file
53
configs/vhost-template.tpl
Normal file
@@ -0,0 +1,53 @@
|
||||
<Directory "/home/~~user~~">
|
||||
AllowOverride None
|
||||
# Allow open access:
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/home/~~user~~/public_html">
|
||||
#
|
||||
# Possible values for the Options directive are "None", "All",
|
||||
# or any combination of:
|
||||
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
||||
#
|
||||
# Note that "MultiViews" must be named *explicitly* --- "Options All"
|
||||
# doesn't give it to you.
|
||||
#
|
||||
# The Options directive is both complicated and important. Please see
|
||||
# http://httpd.apache.org/docs/2.4/mod/core.html#options
|
||||
# for more information.
|
||||
#
|
||||
Options All MultiViews
|
||||
|
||||
#
|
||||
# AllowOverride controls what directives may be placed in .htaccess files.
|
||||
# It can be "All", "None", or any combination of the keywords:
|
||||
# Options FileInfo AuthConfig Limit
|
||||
#
|
||||
AllowOverride All
|
||||
|
||||
#
|
||||
# Controls who can get stuff from this server.
|
||||
#
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<VirtualHost _default_:*>
|
||||
ServerName "~~domain~~"
|
||||
DocumentRoot "/home/~~user~~/public_html"
|
||||
RewriteEngine on
|
||||
RewriteCond %{SERVER_NAME} =~~domain~~
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
</VirtualHost>
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost _default_:443>
|
||||
ServerName "~~domain~~"
|
||||
DocumentRoot "/home/~~user~~/public_html"
|
||||
|
||||
|
||||
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
|
||||
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
Reference in New Issue
Block a user