apache - Name Based Virtual Hosting url not found -


i trying set website name based virtual hosting. when visit website, lukej.us, url not found error. here conf file

<virtualhost *:80>   servername www.lukej.us   serveralias lukej.us *.lukej.us   documentroot /vars/www/html/lukej.html </virtualhost>   <directory /vars/www/html/>   allowoverride   order allow,deny   allow </directory> 

documentroot supposed directory. root folder files served. attempted specify file, gets interpreted directory, since expects directory. trying serve directory /vars/www/html/lukej.html/ doesn't exist.

you wanted this:

<virtualhost *:80>   servername www.lukej.us   serveralias lukej.us *.lukej.us   documentroot /vars/www/html/   directoryindex lukej.html </virtualhost> 

this serve files /vars/www/html/ directory, , show lukej.html index file (when access path / web).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -