Skip to content

Instantly share code, notes, and snippets.

Last active March 24, 2016 07:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Demo config apache virtual host
<VirtualHost *:80>
DocumentRoot /var/www/
# your folder /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php index.html
AllowOverride All
Order Allow,Deny
Allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment