Re: Apache Virtual Host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No, All I am getting are the 500 Forbidden errors. I understand what is
causing them. What I am looking for is how to get the Apache webserver to
work with Virtual Hosting.

Because Apache is running as user-apache and group-apache, it cannot
therefore access the folder /home/westpress/public_html because the folder
is owned by user-westpress and group-westpress. Like wise with jsdzyn and
teamtrailer.

I can only get this working if I change user/group from apache/apache to
westpress/westpress and then add westpress to group jsdzyn and teamtrailer
and change permissions accordingly. But I have a problem running cgi scripts
and suexec, where it expects apache to run as the same user who happens to
own the scripts.

This is very difficult in an environment where I have three different
users/passwords running three different websites using one server.

I am just wondering how ISP's can provide web hosting services to their
thousands of users running one apache server. I have seen some configs which
use a default type of httpd.conf, with includes for all the virtual
containers. When I try something similar, then I get the 500 Forbidden
errors. When I look at my own personally hosted website (who runs Psoft's
Hsphere solution for webhosting) I see that they only run one instance of
Apache with virtual host included containers. All of my directories and
files are owned by cdaters and have the appropriate permissions of 644 or
755 respectively. So how can they do it, and I cannot? Maybe I am missing
something?

It is the same with my 'westpress' user on the server here at work that I
have setup. 755 and 644 respectively, all owned by the 'westpress' user and
group. When apache runs as 'apache' 500 Forbidden errors. When I change
apache to run as 'westpress' everything runs just groovy! (Excluding jsdzyn
and teamtrailer ofcourse)

On 10/29/03 8:39 AM, "Parker Morse" <morse@xxxxxxxxxxx> spoke thusly:

> On Wednesday, Oct 29, 2003, at 10:09 US/Eastern, Craig Daters wrote:
>> Initially on my RHL machine, Apache was configured to run as 'user
>> apache'
>> and 'group apache'. I set up virtual host containers for 'westpress',
>> 'jsdzyn' and 'teamtrailer'. I then restarted apache, and upon pointing
>> my
>> browser to www.westpress.com, or www.jsdzyn.com etc...get error
>> messages.
>> Now I understand why this is happening--the whole user and group
>> permissions
>> thing.
> 
> Craig, I may be misunderstanding your message, but I only see you
> looking for the source of the errors in the Apache configuration. Is
> the mode of the files in the document trees themselves set correctly
> (that is, probably at least 644)?
> 
> pjm
> 


Craig D.

-- 

Craig Daters (craig@xxxxxxxxxxxxx)
Systems Administrator
West Press Printing & Copying
1663 West Grant Road
Tucson, Arizona 85745-1433
USA

Tel: 520-624-4939
Fax: 520-624-2715

www.westpress.com

--


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux