Last active
December 17, 2015 09:49
-
-
Save datt/5590306 to your computer and use it in GitHub Desktop.
1] Configuring apache2 for listening to ports other than 80.
2] Configuring apache2 for sinatra app.
This file contains hidden or 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 characters
| Listen 3333 | |
| <VirtualHost *:80 *:3333> | |
| ServerName local.mlb.com | |
| railsEnv development | |
| # !!! Be sure to point DocumentRoot to 'public'! | |
| DocumentRoot /home/mahavir/projects/rails_projects/mlb_repo/mlb/public | |
| <Directory /home/mahavir/projects/rails_projects/mlb_repo/mlb/public> | |
| # This relaxes Apache security settings. | |
| AllowOverride all | |
| # MultiViews must be turned off. | |
| Options -MultiViews | |
| </Directory> | |
| </VirtualHost> | |
| Listen 3334 | |
| <VirtualHost *:80 *:3334> | |
| ServerName local.mlb-spree.com | |
| railsEnv development | |
| DocumentRoot /home/mahavir/projects/rails_projects/mlb_spree/mlb-spree/public | |
| <Directory /home/mahavir/projects/rails_projects/mlb_spree/mlb-spree/public> | |
| #Options Indexes FollowSymLinks | |
| Options -MultiViews | |
| AllowOverride All | |
| </Directory> | |
| </VirtualHost> | |
| #configuring for sinatra app | |
| <VirtualHost *:80> | |
| ServerName local.login-mlb-cas.com | |
| RailsAutoDetect off #config for sinatra | |
| #SSLEngine On | |
| DocumentRoot /home/mahavir/projects/rails_projects/mlb_cas/rubycasservermlb/public | |
| <Directory "/home/mahavir/projects/rails_projects/mlb_cas/rubycasservermlb/public"> | |
| AllowOverride all | |
| Allow from all | |
| </Directory> | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment