Home > Technical & Creative Skills > Programming, Servers & Scripts

Server/FTP/CDN Problem (6)


07-14-2017 05:23 PM #1 lozzimoney (AMC Alumnus)
Server/FTP/CDN Problem

Hi all,

I took the 6wamc in Feb. and Zeno gave a great guide on setting up a server, CDN and uploading landers using Filezilla. Back in Feb when I followed this I was able to get a site up and running.

I am now in a new vertical and would like to add another site to the server. I followed the same video guide and added the domain to the server, shows up in Filezilla, added domain to CDN, I added a generic webpage through FTP to test that everything is working and this is where the problem is. I keep getting the Nginx Welcome Page. No matter what I add or remove nothing changes and the Welcome page keeps showing up.

I went back through all the settings and re-did everything to no avail. I also went through the settings of the working URL and don't see any differences there either.

I am using Vultr for my server, with Command.io to control the server.
Filezilla for FTP.
Cloudflare for CDN.

Any help would be greatly appreciated.

Nick


07-14-2017 05:47 PM #2 shishev (Moderator)

Hey Nick,

Have you tried clearing Cloudflare's cache? Clear your browser cache too after you do that, if you haven't yet. It might also help to upload files with new names just so you can see the changes.


07-15-2017 12:18 AM #3 lozzimoney (AMC Alumnus)

Hi Shishev,

Yes I tried that first thinking that the page was just caching but still no difference. I tried clearing cache on CDN and browser also using different browsers as well.

Same thing.


07-15-2017 11:54 AM #4 zeno (Administrator)

To clarify, did you delete the default contents of mydomain.com via FTP? I.e. so that default page doesn't even exist anymore.

If you did, and it is still loading it, chances are the "www root" is not actually pointing at that folder.

Check the conf file for that domain - it's possible that something has gone amiss somewhere and the nginx conf file is pointing to a different location for some reason.

If you log in via SSH (use FileZilla), you should be able to go to uhhh usr/local/nginx (IIRC), then the /conf folder and in there you'll find mydomain.conf. Open that to edit and check where the location root is - https://prnt.sc/fvzupu

If this is pointing somewhere other than your mydomain.com folder -- the one you are editing via FTP -- then that would explain things as all your edits will not be affecting it at all.

Not sure why this would change or why a difference might arise, but best to first figure out where the kink is!


07-17-2017 05:48 PM #5 lozzimoney (AMC Alumnus)

Thanks for the reply @Zeno

Here is what shows in the mydomain.conf file

root /home/nginx/domains/mydomain.com/public;

I referenced the working domain and everything is identical in the two files.

Also to answer your first question. I did delete the old files and replaced them with your generic business page as a placeholder but that doesn't show.

Thanks


09-22-2017 07:36 PM #6 lozzimoney (AMC Alumnus)

@zeno I have started looking back into this problem and for some reason the site is exclusively pointing to the index.html file at usr/nginx/html/index.html. I moved the file and now the page 404's.

Any help would be appreciated.

Nick


Home > Technical & Creative Skills > Programming, Servers & Scripts