Last active
February 13, 2019 12:43
-
-
Save rootpd/860308c47fea584884fdcc879d6c4301 to your computer and use it in GitHub Desktop.
REMP nginx configuration
This file contains 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
server { | |
listen 80; | |
server_name campaign.remp.press; | |
root /home/uremp/workspace/remp/Campaign/public; | |
sendfile off; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/.+\.php(/|$) { | |
set $upstream unix:/var/run/php/php7.2-fpm.sock; | |
fastcgi_pass $upstream; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
server { | |
listen 80; | |
server_name mailer.remp.press; | |
root /home/uremp/workspace/remp/Mailer/www; | |
sendfile off; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/.+\.php(/|$) { | |
set $upstream unix:/var/run/php/php7.2-fpm.sock; | |
fastcgi_pass $upstream; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
server { | |
listen 80; | |
server_name beam.remp.press; | |
root /home/uremp/workspace/remp/Beam/public; | |
sendfile off; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/.+\.php(/|$) { | |
set $upstream unix:/var/run/php/php7.2-fpm.sock; | |
fastcgi_pass $upstream; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
server { | |
listen 80; | |
server_name sso.remp.press; | |
root /home/uremp/workspace/remp/Sso/public; | |
location / { | |
try_files $uri /index.php$is_args$args; | |
} | |
location ~ ^/.+\.php(/|$) { | |
set $upstream unix:/var/run/php/php7.2-fpm.sock; | |
fastcgi_pass $upstream; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
server { | |
listen 80; | |
server_name tracker.beam.remp.press; | |
location / { | |
set $upstream 127.0.0.1:8081; | |
proxy_pass http://$upstream; | |
} | |
} | |
server { | |
listen 80; | |
server_name segments.beam.remp.press; | |
location / { | |
set $upstream 127.0.0.1:8082; | |
proxy_pass http://$upstream; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment