You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Admin <ad...@hostingohio.com> on 2002/01/27 21:32:27 UTC
help with user directories and virtual hosts
I'm doing name based virtual hosting with Apache 1.3.19 on a Red Hat 7.1,
intel based, box.
I would like to add something like a publi_html directory to each user's
webpage space. Something like:
/home/joe/shmoe-www/public_html
where user 'joe' has a webpage named 'www.shmoe.com' and he can use the
public_html directory to put files in for stuff like anonymous downloads.
I tried doing some editing of my httpd.conf file to get this done, but I'm
obviously not doing something right. Is there a simple way I can
accomplish this without getting into re-write rules?
Admin
admin@hostingohio.com
www.hostingohio.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Admin <ad...@hostingohio.com>.
You know there may be a .htaccess problem. I had enabled it in the Main
server section awhile ago when I was trying to set it up, but I had
forgotten that I left it enabled. I commented out that part of the main
server file which governed .htaccess and I also did:
<Directory /home/admin/hostingohio-www/cs>
Options +Indexes
</Directory>
Note: in each other attempt I'd left out the '-www' which is part of the
directory name. So it looks like I had several problems going for me *heh*
but it's working now.
Thanks!
Admin
admin@hostingohio.com
www.hostingohio.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Daniel Lopez <da...@rawbyte.com>.
> The error_log says:
>
> Directory index fobidden by rule: /home/admin/hostingohio/cs/
>
> 'Options Indexes' is uncommented in the main server configuration section
> of httpd.conf so I just assumed one should be able to browse if no
> index.html file is present, but apparently that is not the case. I did add
> an 'Options Indexes' line to hostingohio's VH configuration section, but no
> dice. Same error. The permissions seem okay.
Do you have a .htaccess file in that directory that may be interfering?
Try putting a
<Directory /home/admin/hostingohio/cs>
Options +Indexes
</Directory>
and see what happens
> But perhaps you are right that is it more a virtual hosts question and I
> should direct it there.
Nope, it seems like a directory index problem, because of the error message.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Admin <ad...@hostingohio.com>.
The error_log says:
Directory index fobidden by rule: /home/admin/hostingohio/cs/
'Options Indexes' is uncommented in the main server configuration section
of httpd.conf so I just assumed one should be able to browse if no
index.html file is present, but apparently that is not the case. I did add
an 'Options Indexes' line to hostingohio's VH configuration section, but no
dice. Same error. The permissions seem okay.
But perhaps you are right that is it more a virtual hosts question and I
should direct it there.
Admin
admin@hostingohio.com
www.hostingohio.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Daniel Lopez <da...@rawbyte.com>.
Can you post the entry that appears in the error_log? it likely contains
info on why it is being denied
> Actually you describe the goal exactly. I had done a-c and thought I had
> checked all the permissions, but I was still getting a 'denied error'.
> I'll work on it some more.
>
> Thanks.
>
>
> >The UserDir directive is only useful if you want to access the public_html
> >directory as www.shmoe.com/~someuser/public_html which is not what you want.
> >
> >If you want www.shmoe.com/public_html:
> >a) create a virtual host section
> >b) point DocumentRoot to /home/joe/shmoe-www/
> >c) create the /home/joe/shmoe-www/public_html directory.
> >d) Make sure all directories /home, /home/joe, /home/joe/shmoe-www/,
> >/home/joe/shmoe-www/public_html have the right permissions 755
> >e) To enable directory listings, add a "Options +indexes" directive
> >
> >If you still cannot get it to work, please post the virtual host section and
> >the errors you are getting in the error_log file
> >
> >Daniel
>
> Admin
> admin@hostingohio.com
> www.hostingohio.com
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Admin <ad...@hostingohio.com>.
Actually you describe the goal exactly. I had done a-c and thought I had
checked all the permissions, but I was still getting a 'denied error'.
I'll work on it some more.
Thanks.
>The UserDir directive is only useful if you want to access the public_html
>directory as www.shmoe.com/~someuser/public_html which is not what you want.
>
>If you want www.shmoe.com/public_html:
>a) create a virtual host section
>b) point DocumentRoot to /home/joe/shmoe-www/
>c) create the /home/joe/shmoe-www/public_html directory.
>d) Make sure all directories /home, /home/joe, /home/joe/shmoe-www/,
>/home/joe/shmoe-www/public_html have the right permissions 755
>e) To enable directory listings, add a "Options +indexes" directive
>
>If you still cannot get it to work, please post the virtual host section and
>the errors you are getting in the error_log file
>
>Daniel
Admin
admin@hostingohio.com
www.hostingohio.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Daniel Lopez <da...@rawbyte.com>.
> Yeah I've read both. Neither really addresses my need. I opened up the
> lines in httpd.conf (global section) which control access to user
> directories ( ~/username/) and I tried adding a line to one virtual host as
> follows:
>
> UserDir /home/joe/shmoe-www/public_html
>
> With the hope that I could just type:
>
> www.shmoe.com/public_html
>
> and get back a plain text list of files in that directory, but it didn't work.
I am trying to understand what you are trying to do, but I am having trouble
doing so :)
The UserDir directive is only useful if you want to access the public_html
directory as www.shmoe.com/~someuser/public_html which is not what you want.
If you want www.shmoe.com/public_html:
a) create a virtual host section
b) point DocumentRoot to /home/joe/shmoe-www/
c) create the /home/joe/shmoe-www/public_html directory.
d) Make sure all directories /home, /home/joe, /home/joe/shmoe-www/,
/home/joe/shmoe-www/public_html have the right permissions 755
e) To enable directory listings, add a "Options +indexes" directive
If you still cannot get it to work, please post the virtual host section and
the errors you are getting in the error_log file
Daniel
> At 01:44 PM 1/27/2002 -0800, you wrote:
> >
> >
> >> I'm doing name based virtual hosting with Apache 1.3.19 on a Red Hat 7.1,
> >> intel based, box.
> >>
> >> I would like to add something like a publi_html directory to each user's
> >> webpage space. Something like:
> >>
> >> /home/joe/shmoe-www/public_html
> >>
> >> where user 'joe' has a webpage named 'www.shmoe.com' and he can use the
> >> public_html directory to put files in for stuff like anonymous downloads.
> >> I tried doing some editing of my httpd.conf file to get this done, but I'm
> >> obviously not doing something right. Is there a simple way I can
> >> accomplish this without getting into re-write rules?
> >
> >Have you read the information on how to set up named virtual host?
> >http://httpd.apache.org/docs/vhosts/name-based.html
> >
> >If the problem is that you have many users you may want to have a look at:
> >http://httpd.apache.org/docs/vhosts/mass.html
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> Admin
> admin@hostingohio.com
> www.hostingohio.com
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Admin <ad...@hostingohio.com>.
Yeah I've read both. Neither really addresses my need. I opened up the
lines in httpd.conf (global section) which control access to user
directories ( ~/username/) and I tried adding a line to one virtual host as
follows:
UserDir /home/joe/shmoe-www/public_html
With the hope that I could just type:
www.shmoe.com/public_html
and get back a plain text list of files in that directory, but it didn't work.
At 01:44 PM 1/27/2002 -0800, you wrote:
>
>
>> I'm doing name based virtual hosting with Apache 1.3.19 on a Red Hat 7.1,
>> intel based, box.
>>
>> I would like to add something like a publi_html directory to each user's
>> webpage space. Something like:
>>
>> /home/joe/shmoe-www/public_html
>>
>> where user 'joe' has a webpage named 'www.shmoe.com' and he can use the
>> public_html directory to put files in for stuff like anonymous downloads.
>> I tried doing some editing of my httpd.conf file to get this done, but I'm
>> obviously not doing something right. Is there a simple way I can
>> accomplish this without getting into re-write rules?
>
>Have you read the information on how to set up named virtual host?
>http://httpd.apache.org/docs/vhosts/name-based.html
>
>If the problem is that you have many users you may want to have a look at:
>http://httpd.apache.org/docs/vhosts/mass.html
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
Admin
admin@hostingohio.com
www.hostingohio.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: help with user directories and virtual hosts
Posted by Daniel Lopez <da...@rawbyte.com>.
> I'm doing name based virtual hosting with Apache 1.3.19 on a Red Hat 7.1,
> intel based, box.
>
> I would like to add something like a publi_html directory to each user's
> webpage space. Something like:
>
> /home/joe/shmoe-www/public_html
>
> where user 'joe' has a webpage named 'www.shmoe.com' and he can use the
> public_html directory to put files in for stuff like anonymous downloads.
> I tried doing some editing of my httpd.conf file to get this done, but I'm
> obviously not doing something right. Is there a simple way I can
> accomplish this without getting into re-write rules?
Have you read the information on how to set up named virtual host?
http://httpd.apache.org/docs/vhosts/name-based.html
If the problem is that you have many users you may want to have a look at:
http://httpd.apache.org/docs/vhosts/mass.html
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org