Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Default website
- server {
- listen 80 default_server;
- server_name _;
- server_name_in_redirect off;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host:80;
- set $proxyserver "http://127.0.0.1:8888";
- set $docroot "/home/bitrix/www";
- index index.php;
- root /home/bitrix/www;
- # Redirect to ssl if need
- if (-f /home/bitrix/www/.htsecure) { rewrite ^(.*)$ https://$host$1 permanent; }
- # Include parameters common to all websites
- include bx/conf/bitrix.conf;
- # Include server monitoring locations
- include bx/server_monitor.conf;
- # Proxy for webmin
- # Last slash is important
- location /webadmin/ {
- # Tell nginx that we want to proxy everything here to the local webmin server
- # Last slash is important
- proxy_pass http://127.0.0.1:10000/;
- # Change the response Location: header to come from our proxy directory, not the server
- # Fixes initial redirect after login
- proxy_redirect http://$host:10000/ /webadmin/;
- # Also fixes initial redirect after login
- proxy_set_header Host $host;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement