Created
November 16, 2014 12:45
-
-
Save shahariaazam/c193bdd7ed3e87790e3d to your computer and use it in GitHub Desktop.
pop_host.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############### Vartual Host PIGI ORDER PORTAL (Accounts) ####################### | |
| server { | |
| listen 80; | |
| server_name accounts.pop.dev; | |
| root /var/www/pop/accounts/webroot/; | |
| access_log /var/log/nginx/accounts-pop.access.log; | |
| error_log /var/log/nginx/accounts-pop.error.log; | |
| location / { | |
| index index.php; | |
| try_files $uri $uri/ /index.php?$args; | |
| } | |
| location ~ \.php/?(.*)$ { | |
| fastcgi_connect_timeout 3s; # default of 60s is just too long | |
| fastcgi_read_timeout 10s; # default of 60s is just too long | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| } | |
| #Access phpmyadmin | |
| location /phpmyadmin { | |
| root /usr/share/; | |
| index index.php index.html index.htm; | |
| location ~ ^/phpmyadmin/(.+\.php)$ { | |
| try_files $uri =404; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| include fastcgi_params; | |
| } | |
| } | |
| } | |
| ############### Vartual Host PIGI ORDER PORTAL (Application) ####################### | |
| server { | |
| listen 80; | |
| server_name app.pop.dev; | |
| root /var/www/pop/app/webroot/; | |
| access_log /var/log/nginx/app-pop.access.log; | |
| error_log /var/log/nginx/app-pop.error.log; | |
| location / { | |
| index index.php; | |
| try_files $uri $uri/ /index.php?$args; | |
| } | |
| location ~ \.php/?(.*)$ { | |
| fastcgi_connect_timeout 300s; # default of 60s is just too long | |
| fastcgi_read_timeout 100s; # default of 60s is just too long | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_index index.php; | |
| include fastcgi_params; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| } | |
| #Access phpmyadmin | |
| location /phpmyadmin { | |
| root /usr/share/; | |
| index index.php index.html index.htm; | |
| location ~ ^/phpmyadmin/(.+\.php)$ { | |
| try_files $uri =404; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| include fastcgi_params; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment