Tags

#
# Use name-based virtual hosting.
#
#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.
#

NameVirtualHost localhost:80
<VirtualHost 127.0.0.1 >
	DocumentRoot “D:/xampp/htdocs/”
	<Directory “D:/xampp/htdocs/”>
		Options Indexes FollowSymLinks
		AllowOverride All
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>

<VirtualHost local.ceburealestate.com >
	ServerAdmin webmaster@dummy-host2.example.com
	DocumentRoot “D:\xampp\htdocs\local.ceburealestate.com”
	<Directory “D:\xampp\htdocs\local.ceburealestate.com”>
		Options Indexes FollowSymLinks
		AllowOverride All
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>


<VirtualHost localhost:3011>
  ServerName localhost:3011
  DocumentRoot "C:/nodeproject/helloworldapp"
  <Directory "C:/nodeproject/helloworldapp">
		# AllowOverride All      # Deprecated
		# Order Allow,Deny       # Deprecated
		# Allow from all         # Deprecated
    Require all granted      # --New way of doing it
  </Directory>
</VirtualHost>

You got an error such as “Access Forbidden! You don’t have permission to access the requested directory…”
To solve this issue, you add this line: Require all granted
Kindly see the virtualHost settings of helloworldapp

Advertisements