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