c:/xampp - Server
c:/_Projects/proj.secretsinspired/secrets
I´ve followed every tip, advice I could get my hands on but the virtual host continues to redirect to localhost/xampp. I´ve tried creating a symbolic link in my xampp/htdocs folder to no effect. At the moment this is what I have... Can anyone suggest what is going on here?
1. I´ve changed my host file to :
- Code: Select all
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
::1 localhost
127.0.0.1 proj.secrets
2. In my httpd-vhosts.conf I´ve added the following;
- Code: Select all
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerName localhost
ServerAdmin admin@localhost.com
DocumentRoot "C:/xampp/htdocs"
# ##ErrorLog "logs/dummy-host2.example.com-error.log"
# ##CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName proj.secrets
ServerAlias www.proj.secrets
DocumentRoot "C:/_Projects/proj.secrets/inspired-by-secrets/"
ServerAdmin admin@localhost.com
<Directory "C:/_Projects/proj.secrets/inspired-by-secrets/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
##ErrorLog "logs/dummy-host2.example.com-error.log"
##CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
3. In my httpd.conf I´ve set an include for both the vhosts and myconf files
- Code: Select all
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Include conf/myconf