Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Yann Ylavic
On Tue, Mar 22, 2016 at 10:06 AM, Roparzh Hemon wrote: > On Tue, Mar 22, 2016 at 9:56 AM, Yann Ylavic wrote: >> It's usually not a good idea to have the HTTP server own (and be able >> to write to) the files/directory it serves. >> >> So you should probably make httpd run as its own User/Group, a

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Roparzh Hemon
On Tue, Mar 22, 2016 at 9:56 AM, Yann Ylavic wrote: > It's usually not a good idea to have the HTTP server own (and be able > to write to) the files/directory it serves. > > So you should probably make httpd run as its own User/Group, and make > the DocumentRoot (and below) owned by an administrat

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Yann Ylavic
On Mon, Mar 21, 2016 at 1:31 PM, Roparzh Hemon wrote: > > Contents of /private/etc/apache2/httpd.conf file : [] > > User myusernamehere > Group staff It's usually not a good idea to have the HTTP server own (and be able to write to) the files/directory it serves. So you should probably make http

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Yann Ylavic
On Tue, Mar 22, 2016 at 9:15 AM, Yann Ylavic wrote: > > Here you probably need something like: > > Sorry, without the trailing /, ie: and with the path/name you finally chose for you site... > Require all granted > DirectoryIndex index.html > > >> > > Regards, >

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Roparzh Hemon
On Tue, Mar 22, 2016 at 9:15 AM, Yann Ylavic wrote: > Here you probably need something like: > > > Require all granted > DirectoryIndex index.html > > >> > Thanks for your help Yann! It works now. -

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Yann Ylavic
On Mon, Mar 21, 2016 at 1:31 PM, Roparzh Hemon wrote: > > Contents of /private/etc/apache2/extra/httpd-vhosts.conf file : [] > > > ServerName strawberry.com > ServerAlias www.strawberry.com > DocumentRoot "/Users/myusernamehere/Sites/strawberry" > ErrorLog "/private/var/log/apache

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-22 Thread Roparzh Hemon
On Mon, Mar 21, 2016 at 5:57 PM, Richard wrote: > > You should look at your access and error logs to see what is being > served, and from where. Compare that against what you have as the > DocumentRoot value you set for your "hhhstrawhhhberry.com" virtual > host, which should be a filesystem path

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Richard
> Date: Monday, March 21, 2016 17:36:59 +0100 > From: Roparzh Hemon > > As of now, when I put http://www.hhhstrawhhhberry.com/ into my > browser, I get the famous "It works!" message. But I don't get the > index.html file I put in > Documents/Sites/www.hhhstrawhhhberry.com. > > Even if I type

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Roparzh Hemon
> > Generally you should avoid using existing domain names, especially > ones you don't control, (e.g., strawberry.com) since that can have > confusing repercussions. > OK. I just changed the name (to www.hhhstrawhhhberry.com), leaving the rest unchanged, and things work a little better now (se

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Richard
> Date: Monday, March 21, 2016 13:31:27 +0100 > From: Roparzh Hemon > > "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

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Roparzh Hemon
"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?" That's w

Re: [users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Richard
Original Message > Date: Monday, March 21, 2016 08:50:05 +0100 > From: Roparzh Hemon > > 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-e

[users@httpd] Unable to set up virtual hosts on Mac

2016-03-21 Thread Roparzh Hemon
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 reques