I am trying to set up virtual hosts as instructed
http://localhost/dashboard/docs/configure-vhosts.html
I later used https://community.apachefriends.org/f/viewtopic.php?f=29&t=82712 to set up, but nothing happens.
I get an error Access denied.
https://shottr.cc/s/OPHo/SCR-20230519-k2r.png
Here is data:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
- Code: Select all
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/Applications/XAMPP/xamppfiles/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error_log"
CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerName jurgau.local
DocumentRoot /Users/narzan/web/jurgau
<Directory /Users/narzan/web/jurgau>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName narzan.net
DocumentRoot /Users/narzan/web/narzan.net
<Directory /Users/narzan/web/narzan.net>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
/etc/hosts/
- Code: Select all
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 dummy-host2.example.com
127.0.0.1 jurgau.local
127.0.0.1 narzan.net
What am I doing wrong?