Skip to content

Instantly share code, notes, and snippets.

@anhtuank7c
Last active March 24, 2016 07:22

Revisions

  1. anhtuank7c revised this gist Mar 24, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions subdomain.your_domain.conf
    Original 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>
  2. anhtuank7c revised this gist Mar 18, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion subdomain.your_domain.conf
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <VirtualHost *:80>
    ServerAdmin anhtuank7c@hotmail.com
    ServerAdmin support@your_domain.com
    ServerName subdomain.your_domain.com
    ServerAlias www.subdomain.your_domain.com
    DocumentRoot /var/www/subdomain.your_domain.com
  3. anhtuank7c created this gist Mar 18, 2016.
    23 changes: 23 additions & 0 deletions subdomain.your_domain.conf
    Original 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>