Last active
March 24, 2016 07:22
Revisions
-
anhtuank7c revised this gist
Mar 24, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,4 +20,7 @@ </Directory> ErrorLog ${APACHE_LOG_DIR}/subdomain.your_domain.error.log CustomLog ${APACHE_LOG_DIR}/subdomain.your_domain.access.log combined #RewriteEngine On #RewriteCond %{HTTPS} off #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost> -
anhtuank7c revised this gist
Mar 18, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <VirtualHost *:80> ServerAdmin support@your_domain.com ServerName subdomain.your_domain.com ServerAlias www.subdomain.your_domain.com DocumentRoot /var/www/subdomain.your_domain.com -
anhtuank7c created this gist
Mar 18, 2016 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <VirtualHost *:80> ServerAdmin anhtuank7c@hotmail.com ServerName subdomain.your_domain.com ServerAlias www.subdomain.your_domain.com DocumentRoot /var/www/subdomain.your_domain.com # your folder /var/www/subdomain.your_domain.com <Directory /var/www/subdomain.your_domain.com> Options Indexes FollowSymLinks MultiViews DirectoryIndex index.php index.html AllowOverride All Order Allow,Deny Allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/subdomain.your_domain.error.log CustomLog ${APACHE_LOG_DIR}/subdomain.your_domain.access.log combined </VirtualHost>