Guest User

Untitled

a guest
Feb 19th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. in httpd.conf:
  2. LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so
  3.  
  4. <IfModule mod_fcgid.c>
  5. AddHandler fcgid-script .fcgi
  6. SocketPath /var/lib/apache2/fcgid/sock
  7. IPCCommTimeout 40
  8. IPCConnectTimeout 10
  9. </IfModule>
  10.  
  11. in website.conf
  12. <VirtualHost *>
  13. ServerAdmin adm@foo.bar
  14. ServerName foo.bar
  15.  
  16. DocumentRoot /home/foo/websites/foo.bar/public/
  17. CustomLog /home/foo/websites/foo.bar/log/apache2-access.log combined
  18. ErrorLog /home/foo/websites/foo.bar/log/apache2-error.log
  19.  
  20. DefaultInitEnv RAILS_ENV production
  21. <Directory /home/foo/websites/foo.bar/public>
  22. Options ExecCGI +FollowSymLinks
  23. AllowOverride all
  24. AddHandler fcgid-script .fcgi .fcg .fpl
  25. Order allow,deny
  26. Allow from all
  27. </Directory>
  28. </VirtualHost>
Add Comment
Please, Sign In to add comment