Reference : http://forum.wampserver.com/read.php?2,112013,112392
Here is what I've done so far:
* Created a basic MediaWiki page (localhost accessible on local computer)
* WAMP Server is online
* TCP Port 80 (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
* WAMP (Private and Public) is checked under Control Panel\System and Security\Windows Firewall\Allowed Programs
*
Created Windows Firewall Inbound Rule TCP Port 80 (which allows all
connections, Local & Remote Ports: All Ports, Applies to
Domain/Public/Private)
* Created Windows Firewall Outbound Rule TCP
Port 80 (which allows all connections, Local & Remote Ports: All
Ports, Applies to Domain/Public/Private)
Perhaps I went a bit
overboard on the Firewall exceptions? Anyways, I'm stumped on what to do
next. Any advice on how other computers in my home can look at my
localhost? I suppose then the followup question will be what I have to
do so others on the Internet can look at my localhost?
A more secure method would be to edit the httpd.conf file ( using the
wampmanager menu system ) and make a small change to the security in
there so only the ip addresses in your local home network will be
allowed into Apache
To do this find this section of the httpd.conf file
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1 192.168.2
</Directory>
And add one more line like this
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1
</Directory>
Note that this should be the subnet that your router allocates and only the first 3 of the quartets.
So lets say that one of the pcs on your internal network has ip address 192.168.1.10, then the first 3 quartets are 192.168.1
This will have the effect of allowing any PC/Device connected to your internal network to talk to apache.
Đăng ký:
Đăng Nhận xét (Atom)
Học lập trình web căn bản với PHP
Bài 1: Các kiến thức căn bản Part 1: https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2: https://...
-
IMindMap 8.0.4 iMindMap là công cụ tuyệt vời để vẽ bản đồ tư duy đem mọi chi tiết trong đầu bạn ra thành các ý tươgnr, để nắm bắt ý tư...
-
1. Download Bamboo in : http://www.atlassian.com/software/bamboo/download?os=linux cd ~ mkdir BAMBOO cd BAMBOO wget http://www.atlassia...
-
1.Giới thiệu về Vim Vim – Vi iMprove là bản cải thiện của Vim – một trình soạn thảo phổ biến trên Unix. Vim có tính cấu hình rất cao ...
Không có nhận xét nào:
Đăng nhận xét