So currently I have nginx on my VPS setup for hosting a couple websites of mine.
One site is hosted/connecting just fine however it is using site files not in teh directory I specified.
For example:
^ I have it setup so that the site files will come from domain1.com folder; however, when connecting to the site it just uses all files found in the root html directory. :/ hmmm...
Non the less atleast the site is working and is hosted.
But when I tried setting up my server to run a second domain I used essentially the same exact config accept for obviously I changed the domain.
And yes I've already put this in the nginx config file
Also made sure to enable both of the sites with this command
All of this my second domain forwarded correctly yet it will not connect to the server...
Any suggestions??
Assistance is greatly appreciated 🤝
One site is hosted/connecting just fine however it is using site files not in teh directory I specified.
For example:
Code
server {
listen 80;
server_name domain1.com;
root /var/www/html/domain1.com;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ =404;
}
# add other directives here;
}^ I have it setup so that the site files will come from domain1.com folder; however, when connecting to the site it just uses all files found in the root html directory. :/ hmmm...
Non the less atleast the site is working and is hosted.
But when I tried setting up my server to run a second domain I used essentially the same exact config accept for obviously I changed the domain.
And yes I've already put this in the nginx config file
Code
include /etc/nginx/sites-enabled/*.conf;Also made sure to enable both of the sites with this command
Code
sudo ln -s /etc/nginx/sites-available/domain1.com /etc/nginx/sites-enabled/All of this my second domain forwarded correctly yet it will not connect to the server...
Any suggestions??
Assistance is greatly appreciated 🤝



![[Image: vt9fDYR.png]](https://i.imgur.com/vt9fDYR.png)
