Question

I have 2 websites under one droplet but I can only see one in filezilla

Posted December 28, 2019 123 views
DigitalOcean

Hello!

I have been handed this account in digitalocean to work on 2 websites.

The two websites are under one droplet. I have been able to see the files (in Filezilla) to work on the first website but I can’t seem to find or see any files in filezilla that are for the 2nd website.

Can someone help me with this problem?

The first website is located in /var/www/(website1name) so I tried looking for /var/www/(website2name) but there was no such thing.

How can I see and access the files so I can work on the 2nd website?

Thank you in advance!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @jmcpa,

I’ll recommend to check directly on your Droplet rather using SSH. Once you SSH to your droplet, check what Web Service you are using like so

netstat -tulpen | grep 80

It’s either Nginx or Apache. Either way, the configuration files of your website will be somewhere in the following :

/etc/nginx/conf.d/

or

/etc/apache2/sites-available/

Either way, cd to that folder and do a cat on the file with your website.

cat website2name.conf

There you’ll see a DocumentRoot folder. That is your path to your website.

Regards,
KDSys

  • Thank you for this but when I did cat website2name.conf it says no such file in directory on either folders.

    But the good news is I already found it by running find / -type f -name “*.html” in the terminal ( “/” because I started from the root to make sure I go thru every directory to search) and saw that the website2 files were in /srv/www/.

    Thank you for helping out @KDSys! :)

Submit an Answer