Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Stop One Site From Viewing Other's Files

$
0
0
I'm pretty lost here. I've been searching everywhere and haven's had any luck on this yet. I have two server blocks set up under nginx. I followed this tutorial:
>> https://www.digitalocean.com/community/tutorials/how-to-configure-single-and-multiple-wordpress-site-settings-with-nginx

In order to test my security, I uploaded the c99 shell to one of the sites. I was able to browse the files of the other website just by going to the parent directory of the site a few times.

-WWW
|---test.com
|------index.php
|---test2.com
|------index.php

I hope I explained this good... I already have www-data:www-data as the owner (not sure if that's the right term) of the www directory.

How do I prevent a host from traversing upwards into another hosts files or even other files on my server?

Thank you so much in advance!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>