简体   繁体   中英

How to redirect a university personal webpage to an internal ip

We have a webserver managed by our department and each of us have a personal web space url like:

http://students.university.edu/myusername (1)

we can access to our webfiles folder and edit index.html and have other data. I think we also have php server installed with our department webserver so we can also make a php website.

But I want to setup a webserver on my machine in my lab and redirect any access to my personal webspace above (1) from any external client anywhere around the world to my webserver on my local machine. In other words I don't want to use the webserver managed by our department IT because basically I need access to my files on my computer. And as you may notice my machine's ip is local in our infrastructure and invisible from outside. Is there any suggestions?

found this article that says in the .htacces file on your server, add

order deny,allow deny from all allow from 192.168.0.0/24

that should block everyone but the people on ips 192.168.0.0 through 192.168.0.24

of course if u dont have the .htacces file, which you should, you have to create the file in text editor, just calling it .htaccess with no extension

hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM