Re: [newbie] Permission problems with Apache

2002-09-12 Thread Mark Weaver

[EMAIL PROTECTED] wrote:
 Maybe I wasn't clear the first time.  I am serving about 5 domains using
 the virtual server capacity of Apache.  Rather than putting the sites in
 the default location, I want them where I choose to put them
 (/home/asm/html/site1, /home/asm/html/site2, /home/asm/html/site3, etc.)
 and it is there that I don't seem to be getting the proper permissions set.
 I've been through the permissions at each level many times.  Home is owned
 by root, group root.  asm is owned by asm, group is apache, html and site
 folders are the same.
 

in order to do what you're talking about you will have to make this 
entry in your commonhttpd.conf file:

Alias /site1/ /home/asm/html/site1/

so on so forth for all the virtuals you're setting up for. if you're 
also wanting to enable CGI for these directories as well, you will need 
an entry like this to follow:

ScriptAlias /site1/cgi-bin/ /home/asm/html/site1/cgi-bin/

Make these additions to the commonhttpd.conf file and then restart your 
web server. Also the dir's where the HTML file are stored for access 
will have to be chod'd to 755 so they're;

rwxr-xr-x
rwx = user/owner
r-x = group
r-x = world

It may also be helpful if the users owning these home dir's are members 
of the group apache. This could help you avoid problems down the road.

Mark





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Permission problems with Apache

2002-09-12 Thread Michael Viron

Actually, what he is wanting to do is have one directory per domain, not
alias each site directory off of a single domain.

In this case, he should have an entry such as:


# IP-based Virtual Hosts 
#VirtualHost 192.168.2.100
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#/VirtualHost

or possibly:

# Named VirtualHosts
#NameVirtualHost 111.222.33.44
#VirtualHost 111.222.33.44
#ServerName www.domain.tld
#ServerPath /domain
#DocumentRoot /web/domain
#/VirtualHost

in /etc/httpd/conf/vhosts/Vhosts.conf .

Michael

--
Michael Viron
Project Manager / Primary Developer / Manager of Online Operations
General Education Online

At 10:09 PM 9/12/2002 -0400, you wrote:
[EMAIL PROTECTED] wrote:
 Maybe I wasn't clear the first time.  I am serving about 5 domains using
 the virtual server capacity of Apache.  Rather than putting the sites in
 the default location, I want them where I choose to put them
 (/home/asm/html/site1, /home/asm/html/site2, /home/asm/html/site3, etc.)
 and it is there that I don't seem to be getting the proper permissions set.
 I've been through the permissions at each level many times.  Home is owned
 by root, group root.  asm is owned by asm, group is apache, html and site
 folders are the same.
 

in order to do what you're talking about you will have to make this 
entry in your commonhttpd.conf file:

   Alias /site1/ /home/asm/html/site1/

so on so forth for all the virtuals you're setting up for. if you're 
also wanting to enable CGI for these directories as well, you will need 
an entry like this to follow:

   ScriptAlias /site1/cgi-bin/ /home/asm/html/site1/cgi-bin/

Make these additions to the commonhttpd.conf file and then restart your 
web server. Also the dir's where the HTML file are stored for access 
will have to be chod'd to 755 so they're;

   rwxr-xr-x
   rwx = user/owner
   r-x = group
   r-x = world

It may also be helpful if the users owning these home dir's are members 
of the group apache. This could help you avoid problems down the road.

Mark



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Permission problems with Apache

2002-09-11 Thread asmiller

Over the weekend, I fried a hard drive on the Dell notebook I've been using
as a web and mail server for my DSL line.  Won't tell you the whole long
story, but I've almost got it back to where it was, except that I have a
permissions problem with the directories containing the several web sites.
I have set permissions to 755, with the user and group names set to user
and apache.  These are in user's home directory, home/user/html/ and I
keep getting an error message when trying to access the sites:

Forbidden

You don't have permission to access / on this server.

Can anyone offer any suggestions?  I'm stumped.

Andy Miller



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Permission problems with Apache

2002-09-11 Thread teddy wl

Hi...
How you configure the apache web server ( httpd.conf
), I have some suggestion to you. you should re-setup
your apache configuration. you can setup there in the
line were tell you like

Document /home/*/public/html...
..
/Document

you should put your web files in there and restart
your apache daemon. try access it from lynx or
konqueror like this :

http://your.hostname.domain/~user_name/

OK, i hope you understand my english, because i'm from
Indonesia, and still learn about english language..

Have fun :)

--- [EMAIL PROTECTED] wrote:
 Over the weekend, I fried a hard drive on the Dell
 notebook I've been using
 as a web and mail server for my DSL line.  Won't
 tell you the whole long
 story, but I've almost got it back to where it was,
 except that I have a
 permissions problem with the directories containing
 the several web sites.
 I have set permissions to 755, with the user and
 group names set to user
 and apache.  These are in user's home directory,
 home/user/html/ and I
 keep getting an error message when trying to access
 the sites:
 
 Forbidden
 
 You don't have permission to access / on this
 server.


__
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Permission problems with Apache

2002-09-11 Thread Ralph Slooten

Actually, in LM 8.2 it's already there in /etc/httpd/conf/commonhttp.conf 
and it links to /home/*/public_html

So make a folder in your home directory called public_html, add an 
index.html file in to test with, and then log in like said below.

What I would like to know is:
I am using dyndns.org to add a DNS to my computer. Let's say it's called 
thiscomputer.homelinux.org

What I would like to do is add a directory somewhere, and have a link of 
let's say:
other_directory.thiscomputer.homelinux.org

Dyndns supports this, because I'm running a jabber server here, and jabber 
uses these locations to run it's different protocols (ICQ, MSN, AOL, 
Yahoo). Does anyone have any idea to maybe alias it or something, so when a 
user goes to other_directory.thisconputer.homelinux.org he get's 
transferred not to the standard apache root, but another folder?

Thanks
Ralph


On Wed, 11 Sep 2002, teddy wl wrote:

 Hi...
 How you configure the apache web server ( httpd.conf
 ), I have some suggestion to you. you should re-setup
 your apache configuration. you can setup there in the
 line were tell you like
 
 Document /home/*/public/html...
 ..
 /Document
 
 you should put your web files in there and restart
 your apache daemon. try access it from lynx or
 konqueror like this :
 
 http://your.hostname.domain/~user_name/
 
 OK, i hope you understand my english, because i'm from
 Indonesia, and still learn about english language..
 
 Have fun :)

-- 
Homepage: http://tuxpower.f2g.net/




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Permission problems with Apache

2002-09-11 Thread asmiller

Maybe I wasn't clear the first time.  I am serving about 5 domains using
the virtual server capacity of Apache.  Rather than putting the sites in
the default location, I want them where I choose to put them
(/home/asm/html/site1, /home/asm/html/site2, /home/asm/html/site3, etc.)
and it is there that I don't seem to be getting the proper permissions set.
I've been through the permissions at each level many times.  Home is owned
by root, group root.  asm is owned by asm, group is apache, html and site
folders are the same.

Actually, in LM 8.2 it's already there in /etc/httpd/conf/commonhttp.conf
and it links to /home/*/public_html

So make a folder in your home directory called public_html, add an
index.html file in to test with, and then log in like said below.

What I would like to know is:
I am using dyndns.org to add a DNS to my computer. Let's say it's called
thiscomputer.homelinux.org

What I would like to do is add a directory somewhere, and have a link of
let's say:
other_directory.thiscomputer.homelinux.org

Dyndns supports this, because I'm running a jabber server here, and jabber
uses these locations to run it's different protocols (ICQ, MSN, AOL,
Yahoo). Does anyone have any idea to maybe alias it or something, so when a
user goes to other_directory.thisconputer.homelinux.org he get's
transferred not to the standard apache root, but another folder?

Thanks
Ralph


On Wed, 11 Sep 2002, teddy wl wrote:

 Hi...
 How you configure the apache web server ( httpd.conf
 ), I have some suggestion to you. you should re-setup
 your apache configuration. you can setup there in the
 line were tell you like

 Document /home/*/public/html...
 ..
 /Document

 you should put your web files in there and restart
 your apache daemon. try access it from lynx or
 konqueror like this :

 http://your.hostname.domain/~user_name/

 OK, i hope you understand my english, because i'm from
 Indonesia, and still learn about english language..

 Have fun :)

--
Homepage: http://tuxpower.f2g.net/



Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com