1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

XAMPP - allow access from internet

Discussion in 'Apache' started by ker, Feb 29, 2012.

  1. #1
    I have XAMPP server which works fine. When I wanted to load webpages through my lan network it said I need to edit httpd-xampp.conf. When I try to load from internet there is no connection at all.
    I changed httpd-xampp.conf from this
    Code (Text):
    2. <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    3.     Order deny,allow
    4.     Deny from all
    5.     Allow from
    6.     ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    7. </LocationMatch>
    to this
    Code (Text):
    1. <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    2.     Allow from all
    3.     ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    4. </LocationMatch>
    Now I have accsess from lan but still no access from internet.
    Port 80 is forwarded on my router.
    Help me, please...
    ker, Feb 29, 2012 IP
  2. bdthanh

    bdthanh Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    check your fire wall.
    bdthanh, Mar 4, 2012 IP
  3. ColorWP.com

    ColorWP.com Notable Member

    Likes Received:
    Best Answers:
    Trophy Points:
    You should try this rule instead:
    Code (Text):
    1. Order allow,deny
    2. Allow from all
    However, I don't think the file you are editing controls access to your HTDOCS directory. It controls acces for different areas such as phpMyAdmin. In order to allow access to your htdocs directory from outside you need to edit the file apache/conf/httpd.conf and find a line similar to this:
    Code (Text):
    1. Listen localhost:80
    Then make sure Apache listens to the IP that your router assigns to your computer on LAN. In my case, the IP of my computer inside the LAN is and I have forwarded my router's port 85 to (where Apache listens). For this scenario I had to change the above listen line to this:
    Code (Text):
    1. Listen localhost:80
    2. Listen
    After that I opened my.real.IP.here:85 in my browser and I was able to access my htdocs directory. Note that I forwarded port 85 in my router and not 80, because I was having some conflicts with Skype or the firewall. You may manage to get it working with ports 80 on both sides. Note that I am using Windows 7, although it shouldn't make difference.
    ColorWP.com, Feb 1, 2013 IP
  4. cesurasean

    cesurasean Active Member

    Likes Received:
    Best Answers:
    Trophy Points:
    Check firewall, call ISP to see if that port is blocked, make sure router is in fact routing correctly.
    cesurasean, Feb 19, 2013 IP