Guest User

Untitled

a guest
Jan 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. server {
  2. listen 000.00.000.000:80;
  3. listen 000.00.000.000:443 ssl;
  4. server_name subdomain.site.com;
  5. root /var/www/vhosts/companyname/staging;
  6.  
  7. # SSL Configuration redacted
  8.  
  9. location / {
  10. index index.html index.php;
  11. try_files $uri $uri/ @handler;
  12. # try_files $uri $uri/ /index.php?q=$uri&$args;
  13. # expires 30d;
  14. }
  15. location @handler {
  16. # rewrite / /index.php?req=$uri;
  17. rewrite / /index.php;
  18. }
  19.  
  20. location ~ .php/ {
  21. rewrite ^(.*.php)/ $1 last;
  22. }
  23.  
  24. location ~ .php$ {
  25. if (!-e $request_filename) { rewrite / /index.php last; }
  26.  
  27. # expires off;
  28. # fastcgi_pass stagebackend;
  29. # fastcgi_param HTTPS $fastcgi_https;
  30. # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. # include fastcgi_params;
  32.  
  33. #copied config below
  34.  
  35. expires off;
  36. fastcgi_pass stagebackend;
  37. fastcgi_param HTTPS $fastcgi_https;
  38. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  39. fastcgi_param MAGE_RUN_CODE site_en;
  40. fastcgi_param MAGE_RUN_TYPE website;
  41. include fastcgi_params;
  42.  
  43. #end copied config
  44.  
  45. }
  46.  
  47. }
  48.  
  49. Mage::run($mageRunCode, $mageRunType);
  50.  
  51. ln -s /home/example/example.com/html/app/ app
  52. ln -s /home/example/example.com/html/includes/ includes
  53. ln -s /home/example/example.com/html/js/ js
  54. ln -s /home/example/example.com/html/lib/ lib
  55. ln -s /home/example/example.com/html/media/ media
  56. ln -s /home/example/example.com/html/skin/ skin
  57. ln -s /home/example/example.com/html/var/ var
Add Comment
Please, Sign In to add comment