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
    Hello,
    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
    
    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    	Order deny,allow
        Deny from all
        Allow from 127.0.0.0/8 
        ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>
    Code (markup):
    to this
    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Allow from all
        ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>
    Code (markup):
    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

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check your fire wall.
     
    bdthanh, Mar 4, 2012 IP
  3. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,109
    Likes Received:
    98
    Best Answers:
    1
    Trophy Points:
    205
    #3
    You should try this rule instead:
    Order allow,deny
    Allow from all
    Code (markup):
    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:
    Listen localhost:80
    Code (markup):
    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 192.168.0.11 and I have forwarded my router's port 85 to 192.168.0.11:80 (where Apache listens). For this scenario I had to change the above listen line to this:
    Listen localhost:80
    Listen 192.168.0.11:80
    Code (markup):
    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

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