I was trying to configure apache server to be accessible from other WAN computers
Tried this and other procedures that I have found in different forums but it still isn't accessible:
*Set my rooter port forwording to 8080
*configured the httpd.conf to listen to port 80 and granted all access to DocumentRoot directory
I assume that Wamp Server is running fine on your localhost.
Suppose your IP Address is 192.168.5.10:8080 to access wamp Server and the same you want to access from other PC on WAN. Then Click on "Put Online" as mentioned in the Screenshot.
It will restart the wamp Server. Just wait until the Wamp Color Become green and you will be able to access your localhost wampserver website on your network.
I hope this will work for you
Related
I set apache server to run on 8080 and 4433 ports (I changed all the references on 80 port in configuration files as well as all references on 443 port so apache can start). And in XAMPP application it says that apache server is normally running. MySQL server is running as well. There is a solid connection with internet so connection isn't a problem. But when I tried to access 127.0.0.1 this message appeared on display:
This site can’t be reached
127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
How to solve this issue?
Apache won't re-read it's config file automatically after you change it so make sure you've restarted the service.
Also enter the url as http://127.0.0.1:8080 so the browser knows to connect on port 8080 rather than 80.
I have read several questions here and still nothing is working.
I am trying to access my test site from a remote computer (either network or wan but i need wan eventually)
I just re-downloaded the newest XAMPP for windows 10.
I can go to localhost (also the other 3 names I setup in the host file to redirect to localhost) and of course 127.0.0.1 (localhost).
If I try and use my ip address of the computer or someone else trys my ip address on their computer, we get page cant be found (from chrome)
If I check apache access logs I see nothing about an access attempt.
Netstat -a shows these two records
TCP 0.0.0.0:80
TCP 0.0.0.0:443
TCP [::]:80
TCP [::]:443
I have gone to Windows Firewall -> Advanced Settings -> Inbound rule. Here it shows that appache has 2 rules, one for UDP and one for TCP allowing all ports.
I have gone to my rounter and port forwarded 80 & 443 (which is what xampp is running on) and still nothing
I even have put my computer in a DMZ. I also turned off the windows firewall. (all back on after testing of course this is dangerous).
Xampp has no locationmatch in xampp-http.conf like other questions.
My vhost file has the directory setup like this:
<Directory "C:/Users/username/Desktop/git repos/stats-website">
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>
This is my testing rig and I am now testing an API that is being accessed externally before I send it to the production server. I have been at this for 2 days and out of all possibilities
UPDATE
I have solved the issue somewhat. I can now get to it from everything except localhost or 127.0.0.1
In httpd.conf I changed it from just Listen 80 to Listen pcipaddress:80. I thought listen 80 defaulted to binding on more than just localhost
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
Listen 192.168.1.241:80
#Listen 80
How do I do it so it works both localhost and also remote connections?
Just installed WAMP on a Windows 7 machine.
When I go to localhost / from the localhost, everything works. But when I try to go to the machine from another computer on the local network, I get the following error message:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at 192.168.1.13 Port 80
How do I solve this?
See the below question. You have to allow access through port 80 to your Apache server in httpd.conf by making sure you have Listen *:80
How to access site running apache server over lan without internet connection
An additional resource with items to do when you install a fresh copy of WAMP
http://forum.wampserver.com/read.php?2,119754,119754
Click on wamp icon > Apache > Apache modules > rewrite module(enable this module)
this is probably a noob problem but I can't get this to work. The Apache on wamp is currently on Listen 8080 because the regular localhost wouldn't work. However when I turn on Tomcat it is also on 8080 which is conflicting with wamp. I am connecting to Tomcat via Eclipse plugin. With Tomcat on I can't get into phpmyadmin on wamp.
Apache's httpd.conf in wamp is set to:
Listen 8080
ServerName localhost:80
Only with this setting I can get wamp to work.
localhost:8080 will work and 127.0.0.1:8080 works as well. Turning on Tomcat will automatically override wamp's settings. How can I get wamp to just be a regular localhost address and not have it take an 8080 port where Tomcat is sitting on?
try to change the port tomcat is using.
Go to conf folder in tomcat installation directory
e.g. C:\Tomcat 6.0\conf\
Edit following tag in server.xml file
Change the port=8080 value to port=80
Save file.
or another solution is , you can change your wamp port from 8080 to any other one...
I'm using local server where XAMPP is running on. This local server is in the same network as my own computer. Now I want to access different site's running on that server. I had the following in mind.
My local server IP is 10.0.0.2. In my own hosts file I added the following.
10.0.0.2 www.domain.nl
Now when I enter www.domain.nl in my browser, I will be redirected to the server's localhost.
At the server, I added a VirtualHost to the httpd-vhosts.conf file:
<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/domain
ServerName localhost
</VirtualHost>
So now I will be redirected to the website running in the folder domain.
The problem
The problem now is, I also have a other website running on the local server. This one is on
the local server located in c:/xampp/htdocs/anotherdomain.
Adding another virtualhost does now only work on the local server itself, but not remote, because from remote I will always have the ServerName localhost.
How will I set this up? Hope you all understand my problem and someone knows how to get this working.