Solution for the error 403 Forbidden you don’t have permission to access / on this server. All you need to resolve it is enable Rewrite Module on WampServer and config the Rewriter Role
Here are the step to config site
- Enable Rewriter Module by select rewrite_module
2. Config WampServer
- Open httpd.conf file to enable Virtual Host (F:\wamp\bin\apache\Apache2.2.17\conf\httpd.conf)
- Enable Virtual Host
+ Remove the “#” from the begging of the following line
#Include conf/extra/httpd-vhosts.conf
+ Open file F:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf to config virtual host
- At line 15 add code
<Directory F:/WebRoot/your-site-com>
Order Deny,Allow
Allow from all
</Directory> - At the end of file add code
<VirtualHost *:80>
ServerAdmin webmaster@your-site.com
DocumentRoot F:/WebRoot/your-site-com
ServerName your-site.com
ServerAlias www.your-site.com
</VirtualHost>
- Update the VirtualHost in :\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@your-site.com
DocumentRoot D:/Your-Site
ServerName your-site.com
ServerAlias www.your-site.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Now, Restart the WampServer, you site now is support Rewriter URL
4. Resolving the DNS issue
Opend file C:\windows\system32\drivers\etc\hosts and add domain
0 Comments