httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard <lists-apa...@listmail.innovate.net>
Subject Re: [users@httpd] Unable to set up virtual hosts on Mac
Date Mon, 21 Mar 2016 12:07:28 GMT


------------ Original Message ------------
> Date: Monday, March 21, 2016 08:50:05 +0100
> From: Roparzh Hemon <roparzhhemon@gmail.com>
>
> I've tried to set up a virtual host on my Mac, following all the
> instructions at
> https://coolestguidesontheplanet.com/how-to-set-up-virtual-hosts-in
> -apache-on-mac-osx-10-11-el-capitan/.
> 
> But when I type localhost/~myusernamehere/www.strawberry.com in my
> browser, I get a "404 Not Found : The requested URL
> /~myusernamehere/www.strawberry.com was not found on
> this server." message
> 
> The output of "/usr/sbin/apachectl configtest" is "AH00112: Warning:
> DocumentRoot [/Users/ewandelanoy/Sites/strawberry] does not exist
> Syntax OK"
> 
> In my ~/Documents/Sites I have a directory called
> www.strawberry.com. Should I rename it to just "strawberry" ?


You need to "show your work", i.e., at least the relevant parts of
your virtualhost configuration and the directory list showing the
documentroot for this virtualhost.

I suspect you are mixing concepts (servername vs. documentroot), and
likely not fully understanding what a virtualhost is and how one
would access it via a web server.

Do you control the domain "strawberry.com", or is this just an
obscured reference to the real domain you are using?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message