Here is my config: # You may add here your # server { # ... # } # statements for each of your virtual hosts server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 access_log /var/log/nginx/bar.com.access.log; rewrite ^(.*) https://bar.com$1 permanent; location / { root /var/www; index index.html index.htm; } } servby DatWarrior - How to...
Greetings, NGINX users! I want to redirect any requests from my subdomain to another path then the main domain. For example; A user enters foo.bar.com and sees files in /var/www2. A user who access bar.com sees files in /var/www. Thanks in advantage.by DatWarrior - How to...
rewrite ^(.*) https://domain.org$1 permanent; Put it OUTSITE the location { }by DatWarrior - How to...
![]() |
![]() |
![]() |
![]() |
|