Advertisement
FlorentPoujol

nginx annopedia vhost config

Sep 30th, 2015
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. login page: http://www.annopedia.net/forums/anno1404/login.php
  2.  
  3. SSl error url: https://www.annopedia.net:80/forums/anno1404/login.php
  4.  
  5. Nginx vHost config
  6.  
  7. server {
  8. #listen 80; ## listen for ipv4; this line is default and implied
  9. #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
  10.  
  11. ssl off; # added after some research on internet, it didn't change anything
  12.  
  13. root /home/florent/www/annopedia/htdocs;
  14. index index.php index.html index.htm;
  15.  
  16. access_log /home/florent/www/annopedia/logs/nginx_access.log;
  17. error_log /home/florent/www/annopedia/logs/nginx_error.log;
  18.  
  19. server_name annopedia.net www.annopedia.net;
  20.  
  21. location / {
  22. index index.php index.html index.htm;
  23. #try_files $uri $uri/ /index.php;
  24. }
  25.  
  26. location /site {
  27. index index.php index.html index.htm;
  28. try_files $uri $uri/ /site/index.php$args;
  29. }
  30.  
  31. location ~ \.php$ {
  32. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  33. fastcgi_pass unix:/var/run/php5-fpm.sock;
  34. fastcgi_index index.php;
  35. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  36. include fastcgi_params;
  37. }
  38.  
  39. location ~ /\. { deny all; access_log off; log_not_found off; }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement