Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. sudo hhvm -m server -vServer.Type=fastcgi -vServer.Port=9000
  2.  
  3. sudo apt-get install php5-fastcgi
  4.  
  5. sudo apt-get install hhvm-fastcgi
  6.  
  7. <VirtualHost *:80 >
  8.  
  9. ServerAdmin webmaster@localhost
  10. DocumentRoot /var/www
  11.  
  12. ErrorLog ${APACHE_LOG_DIR}/error.log
  13. CustomLog ${APACHE_LOG_DIR}/access.log combined
  14. ProxyPassMatch / fcgi://127.0.0.1:9000/var/www/
  15. </VirtualHost>
  16.  
  17. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  18.  
  19. Mutex file:${APACHE_LOCK_DIR} default
  20. PidFile ${APACHE_PID_FILE}
  21. Timeout 300
  22.  
  23. KeepAlive On
  24.  
  25. MaxKeepAliveRequests 100
  26.  
  27. KeepAliveTimeout 5
  28.  
  29. User ${APACHE_RUN_USER}
  30. Group ${APACHE_RUN_GROUP}
  31. HostnameLookups Off
  32. ErrorLog ${APACHE_LOG_DIR}/error.log
  33. LogLevel warn
  34.  
  35. IncludeOptional mods-enabled/*.load
  36. IncludeOptional mods-enabled/*.conf
  37. Include ports.conf
  38. <Directory />
  39. Options FollowSymLinks
  40. AllowOverride None
  41. Require all denied
  42. </Directory>
  43.  
  44. <Directory /usr/share>
  45. AllowOverride None
  46. Require all granted
  47. </Directory>
  48.  
  49. <Directory /var/www/>
  50. Options Indexes FollowSymLinks
  51. AllowOverride None
  52. Require all granted
  53. </Directory>
  54. AccessFileName .htaccess
  55.  
  56. <FilesMatch "^.ht">
  57. Require all denied
  58. </FilesMatch>
  59.  
  60.  
  61. LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
  62. LogFormat "%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
  63. LogFormat "%h %l %u %t "%r" %>s %O" common
  64. LogFormat "%{Referer}i -> %U" referer
  65. LogFormat "%{User-agent}i" agent
  66.  
  67. IncludeOptional conf-enabled/*.conf
  68. IncludeOptional sites-enabled/*.conf
  69. Include /etc/phpmyadmin/apache.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement