Rails Virtual Server


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <VirtualHost *:80>
  2. ServerName www.yourhost.com
  3. DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
  4. <Directory /somewhere/public>
  5. AllowOverride all # <-- relax Apache security settings
  6. Options -MultiViews # <-- MultiViews must be turned off
  7. </Directory>
  8. </VirtualHost>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.