Permissions/forwarding/routing for files and folders

I have a VPS with Debian OS and root access.

My public_html viewable to the public is in var/www

in the www folder I have index file which obviosuly is my index page. So when someone goes to rockon.net they see that page.

Then I have a "superstats" folder there so when someone goes to rockon.net/superstats/ they go to superstats.
I also have a "phpBB2" folder there so when someone goes to rockon.net/phpBB2/ they go to rockon.com/phpBB2/.
I have a few more folders and they work exactly as the ones I mentioned

So, so far all is simple and normal and I understand it all. But now it gets confusing and I need help.

I also have a folder "webpage" and many files in it. For example I have "notebook.php" and "john"php" in there. However, when I go to rockon.net/webpage/notebook.php I get an error messege:

Not Found

The requested URL /webpage/notebook.php was not found on this server.
Even if I try to go to rockon.net/webpage/ it gives me same messege! (just without the notebook.php)

BUT , if I go to rockon.net/notebook.php, it works! For some reason when I go to rockon.net/notebook.php I am really seeing rockon.net/webpage/notebook.php!

I don't know how that happens.

Then I have some another folder called "johnsite" and when I go to rockon.net/johnsite/ I just get the same error messege as above.

I can view all of it's contents through SFTP and download it and the chmod permissions are set to 0755 but I can't access it though rockon.net/johnsite/

The same problem is with a few folders. They are in the www folder as other folders visible to the public through normal browser, but for some reason they are inaccesible through a browser and I get the error messege above.

Could you guys help me out? I'm currently learning Debian and linux and perhaps getting a VPS with root access and no control panel was not such a good idea but I think thai way I will learn to manage the server better.

 

 

 

 

Top