how to port-forward a directory inside /var/www
Hi, this is more a webserver question running in ubuntu.
i have 3 folders(websites) in /var/www, that i run for internal use. - public - private 1 - private 2 i was tasked to make 1 public folder to be accessed via internet. i have managed to port forward my WAN IP to my internal web server successfully and i can browse these folder with no problems (internal/internet). what are my alternatives to only restrict public folder to be accessed via public internet? can i map an IP address to a specific directory?? so i could just port forward that directory? i really dont know, im just thinking based on my general knowledge. thanks :) |
Hi,
You can restrict access on folders, based on the client IP. E.g.: Code:
<Directory /var/www/private1> For more details have a look here Regards |
All times are GMT -5. The time now is 07:34 PM. |