Mac OS X: Port 8001 blocked in XAMPP. No Firewall on, no ISP

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Mac OS X: Port 8001 blocked in XAMPP. No Firewall on, no ISP

Postby conorhiggins » 21. November 2013 23:15

I have been trying to setup a new site on localhost which needs to be accessed via a separate port, for example port 8001, 8080, etc. As long as it is unused, I can apply it in this case. I have updated some of my conf files in XAMPP to accommodate the new site, namely:

XAMPP/xamppfiles/etc/httpd.conf
XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
XAMPP/xamppfiles/etc/extra/httpd-xampp.conf


In httpd.conf, I added the following:
Code: Select all
Listen 8001


My httpd-vhosts.conf is as follows:
Code: Select all
NameVirtualHost *:80
NameVirtualHost *:8001

# localhost
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "/Applications/XAMPP/htdocs"
    <Directory "/Applications/XAMPP/htdocs">
        Options Indexes FollowSymLinks Includes execCGI
        AllowOverride All
        Order Allow,Deny
        Allow From All
        Require all granted
    </Directory>
</VirtualHost>

# venus.localhost
<VirtualHost *:8001>
    ServerName venus.conordev.com
    DocumentRoot "/Applications/XAMPP/htdocs/venus-back-end/public"
    <Directory "/Applications/XAMPP/htdocs/venus-back-end/public">
        Options Indexes FollowSymLinks Includes execCGI
        AllowOverride All
        Order Allow,Deny
        Allow From All
        Require all granted
    </Directory>
</VirtualHost>


In httpd-xampp I updated the section to the following:
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    #Deny from all
    Allow from ::1 127.0.0.0/8 \
        fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
        fe80::/10 169.254.0.0/16

    Allow from all
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


It is worth noting, that this is an exactly duplicate of a colleagues environment and setup yet it works on his machine and not on mine.

In terminal I have tried the following commands and gotten their subsequent responses:

Code: Select all
> curl -I http://venus.conordev.com:8001
curl: (7) Failed connect to venus.conordev.com:8001; Connection refused

> telnet 127.0.0.1 8001
Trying 127.0.0.1... telnet: connect to
address 127.0.0.1: Connection refused telnet: Unable to connect to remote host


If anyone can shed some light on why this issue is occurring it would be great. I have been trying various options for the last couple of days it hasn't improved to any extent.

Thank you in advance
conorhiggins
 
Posts: 1
Joined: 21. November 2013 22:54
XAMPP Version: 1.8.3
Operating System: Mac OS X (Mavericks)

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests