Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 000.00.000.000:80;
- listen 000.00.000.000:443 ssl;
- server_name subdomain.site.com;
- root /var/www/vhosts/companyname/staging;
- # SSL Configuration redacted
- location / {
- index index.html index.php;
- try_files $uri $uri/ @handler;
- # try_files $uri $uri/ /index.php?q=$uri&$args;
- # expires 30d;
- }
- location @handler {
- # rewrite / /index.php?req=$uri;
- rewrite / /index.php;
- }
- location ~ .php/ {
- rewrite ^(.*.php)/ $1 last;
- }
- location ~ .php$ {
- if (!-e $request_filename) { rewrite / /index.php last; }
- # expires off;
- # fastcgi_pass stagebackend;
- # fastcgi_param HTTPS $fastcgi_https;
- # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- # include fastcgi_params;
- #copied config below
- expires off;
- fastcgi_pass stagebackend;
- fastcgi_param HTTPS $fastcgi_https;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param MAGE_RUN_CODE site_en;
- fastcgi_param MAGE_RUN_TYPE website;
- include fastcgi_params;
- #end copied config
- }
- }
- Mage::run($mageRunCode, $mageRunType);
- ln -s /home/example/example.com/html/app/ app
- ln -s /home/example/example.com/html/includes/ includes
- ln -s /home/example/example.com/html/js/ js
- ln -s /home/example/example.com/html/lib/ lib
- ln -s /home/example/example.com/html/media/ media
- ln -s /home/example/example.com/html/skin/ skin
- ln -s /home/example/example.com/html/var/ var
Add Comment
Please, Sign In to add comment