php - Object Not Found Error on XAMPP virtual hosts -


i'm trying setup virtual hosts on localhost, below things i've done:

enable virtual hosts

# virtual hosts include etc/extra/httpd-vhosts.conf 

created virtual hosts

# localhost <virtualhost *:80>     servername localhost     documentroot "/applications/xampp/xamppfiles/htdocs"     <directory "/applications/xampp/xamppfiles/htdocs">         options indexes followsymlinks includes execcgi         allowoverride         require granted     </directory> </virtualhost>  # pendu web <virtualhost *:80>     servername local.mysite     documentroot "/applications/xampp/xamppfiles/htdocs/mysite”     <directory "/applications/xampp/xamppfiles/htdocs/mysite">         options indexes followsymlinks includes execcgi         allowoverride         require granted     </directory>     errorlog "logs/mysite.local-error_log" </virtualhost> 

edit hosts file

# xampp virtualhost mappings 127.0.0.1       local.mysite 

now, when trying access local.mysite browser url, gives error 404: object not found. when checking apache error log, error warning: documentroot [/applications/xampp/xamppfiles/htdocs/mysite\xe2\x80\x9d] not exist. not sure i'm missing here.

the name of project directory should local.mysite not mysite.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -