Skip to content

Instantly share code, notes, and snippets.

@mppatterson
Created February 21, 2014 13:50
Show Gist options
  • Save mppatterson/9134550 to your computer and use it in GitHub Desktop.
Save mppatterson/9134550 to your computer and use it in GitHub Desktop.
Use Different Ports on Apache
<VirtualHost *:80>
DocumentRoot /home/user/app/
<Directory /home/user/app/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Listen 5000
<VirtualHost *:5000>
DocumentRoot /home/user/anotherapp/
<Directory /home/user/anotherapp/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment