rejetto forum

How can I hide the root directory

Guest · 4 · 3992

0 Members and 1 Guest are viewing this topic.

Predictor

  • Guest
Does anyone how I can hide the fact that a webserver is running on the server by hiding the default purple page on the root directory?


Predictor

  • Guest

Predictor

  • Guest
To be clearer, I mean to have the root actually begin at a virtual folder like like http://255.255.255.255/newroot/ and that the real root doesn't expose anything


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
such hiding is impossible.
you can actually hide the root, but can't hide the webserver itself.
the reason is: the folder is specified only after the connection with the webserver is established.

to have a poor hiding, you can put an empty index.html file in the root, and set the default file mask to show it.