You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed it and all works great but I would like to be able too to use "example.com" in addition of "subdomain1.example.com", "subdomain2.example.com",...
I tried to create a vdomain conf file named "example.com.conf"as follow :
`
server {
listen 443 ssl http2 ;
server_name example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
include snippets/example.com.cert.conf;
include snippets/ssl-params.conf;
location / {
include snippets/proxy-params.conf;
proxy_pass http://192.168.0.30;
}
}
`
I also tried to play with the "default-server" parameter but without success. In all cases, it redirect me on the first server in the vdomains folder (by name), even if i change the name of "example.com" conf file to be the first.
Also, I didn't forget to reload the nginx service after modifications.
Any idea to resolve this ? I think it's not so difficult but I'm yet quite a newbie in this kind of stuff ^^
Thanks again for this well explained guide !
PS : of course, i change my real domain name by example.com for this message
The text was updated successfully, but these errors were encountered:
Hi,
First, thanks for this very useful guide !
I followed it and all works great but I would like to be able too to use "example.com" in addition of "subdomain1.example.com", "subdomain2.example.com",...
I tried to create a vdomain conf file named "example.com.conf"as follow :
`
server {
listen 443 ssl http2 ;
}
`
I also tried to play with the "default-server" parameter but without success. In all cases, it redirect me on the first server in the vdomains folder (by name), even if i change the name of "example.com" conf file to be the first.
Also, I didn't forget to reload the nginx service after modifications.
Any idea to resolve this ? I think it's not so difficult but I'm yet quite a newbie in this kind of stuff ^^
Thanks again for this well explained guide !
PS : of course, i change my real domain name by example.com for this message
The text was updated successfully, but these errors were encountered: