Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <VirtualHost *:8080>
  2. ServerAdmin webmaster@localhost
  3. DocumentRoot /var/www/html
  4. ErrorLog ${APACHE_LOG_DIR}/error.log
  5. CustomLog ${APACHE_LOG_DIR}/access.log combined
  6. </VirtualHost>
  7.  
  8. server {
  9. listen 8080;
  10. server_name 127.0.0.1;
  11. root /var/www/html;
  12. index index.php index.html index.htm index.nginx-debian.html;
  13.  
  14. location / {
  15. try_files $uri $uri/ =404;
  16. }
  17.  
  18. error_page 404 /404.html;
  19. error_page 500 502 503 504 /50x.html;
  20.  
  21. location = /50x.html {
  22. root /var/www/html;
  23. }
  24.  
  25. location ~ .php$ {
  26. try_files $uri =404;
  27. fastcgi_pass unix:/var/run/php5-fpm.sock;
  28. fastcgi_index index.php;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. include fastcgi_params;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement