i am developing a website and need to share progress with other stakeholders.
Is it Possible to view my apache server (local host) from home or remote computer that is outside my LAN?
i am developing a website and need to share progress with other stakeholders.
Is it Possible to view my apache server (local host) from home or remote computer that is outside my LAN?
localhost is an internal interface that is not available to the rest of the world.
You have two options. One is to reconfigure your webserver to listen on port 80 of your external interface. The other option is to forward TCP traffic from external port 80 to localhost.
You're going to want some kind of access restriction, regardless of which method you pick.
Where is this LAN that the web server resides on? If it is at your home then you can configure your personal soho router to forward all requests for incoming http(80) to a specific IP address on the local LAN. This is achieved via the administrative web interface of the router in most instances accessible via the gateway IP of the device. You will want to make sure apache is configured to listen on the computers LAN IP and not just the loopback interface:
netstat -ntlp
That will list which services are listening on which IP:port. You may need to modify apache's listen directive like so:
Listen 0.0.0.0:80
And verify iptables is configured to accept traffic destined to port 80.
If the server is setting on an internal network where you do not have access or permission to modify the router...then you should not attempt to make that server available publicly. It would most likely be against company policy if you could get it to work.
Also, instead of giving out your home IP address to everyone (since it's going to change/expire at some point) you can instead give out a dyndns address. See dyndns.org
If this wasn't what your looking for then please give additional detail in your question.
After setting up apache server and allowing your router to allow port forwarding to your http port on your machine (assuming home) . I would suggest you setup static ip for your home machine and dyndns account on your router which help your clients look that you have web hosting in place.
The best option would be after the above setup or in case you have a remote server is to use "Basic HTTP Authentication" so that only specific users who have logins can see your page.
# cat .htaccess # the directory which you want to protect.
AuthType Basic
AuthName "Beta users only"
AuthUserFile /abs/path/to/passwd/file
Require valid-user
Check out htpasswd command to populate the usernames and passwords to /abs/path/to/passwd/file
To encourage upgrading to higher-end packages and to discourage heavy use of upstream traffic on lower-end packages, ISPs generally filter the most common Internet server ports. So the first thing you will want to do is to change the port that Apache is listening on. Anything above port 1024 is generally a safe bet. Alternatively, you can contact your ISP to find out how much money they want to unblock the traffic.
Listen 8080
<VirtualHost *:8080>
# ...
</VirtualHost>
Second, assuming that you are using a Masquerading NAT router (if you have a router, just assume that it is), you will need to forward the same port to your server.
Third, if your Internet connection has a dynamic IP address, you'll want a domain name that updates to go along with it. DynDNS (dyndns.com) is probably the best known and trusted provider for this kind of solution.
At the end of your setup, somebody should be able to visit your website by specifying the full URL. The "http" will likely be necessary to force browsers to not try to use other protocols and the port must be specified, even with use of a domain name.
Examples:
急性肠胃炎吃什么药好 | 什么是湿热体质 | 大连靠近什么海 | 查验是什么意思 | 黄色配什么颜色最搭 |
男人喜欢什么姿势 | 口臭看什么科 | 铜罗是什么生肖 | 英国为什么要脱欧 | 酸枣仁配什么治疗失眠 |
六月出生的是什么星座 | 甲亢什么不能吃 | 什么是低保 | 饭后胃胀是什么原因导致的 | 塔丝隆是什么面料 |
九月十三号是什么星座 | 为什么手脚老是出汗 | lucas是什么意思 | 神经紊乱有什么症状 | 上半身皮肤痒什么原因 |
甲级战犯是什么意思hcv7jop5ns6r.cn | 头颈出汗多是什么原因cl108k.com | 人为什么要读书hcv8jop7ns4r.cn | 不够时间好好来爱你是什么歌hcv8jop2ns1r.cn | 骨折用什么药恢复快hcv8jop7ns6r.cn |
什么负什么名hcv8jop7ns8r.cn | 产妇吃什么水果好hcv9jop2ns1r.cn | 疱疹用什么药最好hcv8jop6ns3r.cn | 甘油三酯高有什么症状hcv9jop0ns4r.cn | 甲醛对人体有什么危害hcv9jop3ns0r.cn |
为什么会得血管瘤hcv8jop9ns8r.cn | 摩羯座跟什么星座最配hcv8jop4ns9r.cn | 辣椒炒肉用什么肉hcv8jop2ns9r.cn | 老年人喝什么蛋白粉好hcv9jop5ns6r.cn | 吕布的马叫什么名字hcv9jop0ns4r.cn |
乏力是什么原因naasee.com | 右肾钙化灶是什么意思hcv8jop0ns2r.cn | 狗狗吐黄水是什么原因hcv7jop9ns5r.cn | 荨麻疹需要注意什么hcv9jop6ns6r.cn | 儿童病毒感染吃什么药hcv9jop7ns3r.cn |