Re: [gentoo-user] Apache2 things vhost directories are not directories?

2005-05-16 Thread Calvin Spealman
I've gotten it all set up just fine now, although I think I need to
read more up on the Directory settings, for some more fine-grained
permissions, but it works now. Thanks for the suggestions everyone.

On 5/15/05, sIbOk [EMAIL PROTECTED] wrote:
 Take a look to this thread, maybe it helps to you
 
 http://forums.gentoo.org/viewtopic-t-319429-highlight-.html
 
 2005/5/16, A. Khattri [EMAIL PROTECTED]:
  On Sun, 15 May 2005, kashani wrote:
 
   I'm guessing that you haven't defined /var/www/* as directories and
   given them permissions. In my Apache1 installtion I have these lines in
   commonapache.conf.
  
   #Restricted set of options
   Directory /
  Options -All -Multiviews
  AllowOverride None
  Order deny,allow
  Deny from all
   /Directory
 
  On one of web servers, all the vhosts are under /home so instead of adding
  the directives to each vhost, I simply have this in commonapache.conf:
 
  Directory /home/*/html
  AllowOverride All
  Options MultiViews -Indexes Includes FollowSymLinks
  Order allow,deny
  Allow from all
  /Directory
 
  Directory /home/*/cgi-bin
   Options +ExecCGI -Includes -Indexes
   SetHandler cgi-script
  /Directory
 
  --
 
  --
  gentoo-user@gentoo.org mailing list
 
 
 
 --
 Cualquier hijo de puta sabe lo que darte si tiene que dolerte, pero no
 cualquier hijo de puta saber lo que darte si tiene que gustarte. Yo
 soy sIbOk un hijo puta especial...!!
 
 --
 gentoo-user@gentoo.org mailing list
 


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Apache2 things vhost directories are not directories?

2005-05-15 Thread Calvin Spealman
With the following vhost.conf, I'm getting an error DocumentRoot must
be a directory, and the two document roots I'm using do, in fact,
exist. Does anyone know why Apache2 would think they are not
directories?

NameVirtualHost *
VirtualHost *
ServerName www.ironfroggy.com
ServerAlias ironfroggy.com www.ironfroggy.com
DocumentRoot /var/www/www-ironfroggy-com/
/VirtualHost

VirtualHost *
ServerName sftp.ironfroggy.com
DocumentRoot /var/www/sftp-ironfroggy-com/
/VirtualHost

And, just for good measure:
drwxr-xr-x  6 root   root 4096 May 15 14:02 sftp-ironfroggy-com
drwxr-xr-x  6 calvin root 4096 May 11 15:55 www-ironfroggy-com

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Apache2 things vhost directories are not directories?

2005-05-15 Thread kashani
Calvin Spealman wrote:
With the following vhost.conf, I'm getting an error DocumentRoot must
be a directory, and the two document roots I'm using do, in fact,
exist. Does anyone know why Apache2 would think they are not
directories?
NameVirtualHost *
VirtualHost *
ServerName www.ironfroggy.com
ServerAlias ironfroggy.com www.ironfroggy.com
DocumentRoot /var/www/www-ironfroggy-com/
/VirtualHost
VirtualHost *
ServerName sftp.ironfroggy.com
DocumentRoot /var/www/sftp-ironfroggy-com/
/VirtualHost
And, just for good measure:
drwxr-xr-x  6 root   root 4096 May 15 14:02 sftp-ironfroggy-com
drwxr-xr-x  6 calvin root 4096 May 11 15:55 www-ironfroggy-com
I'm guessing that you haven't defined /var/www/* as directories and 
given them permissions. In my Apache1 installtion I have these lines in 
commonapache.conf.

#Restricted set of options
Directory /
  Options -All -Multiviews
  AllowOverride None
  Order deny,allow
  Deny from all
/Directory
So for each vhost I have to define a directory and give it the access I 
want. Here's the config for one of my vhosts.

[EMAIL PROTECTED] kashani $ more /etc/apache/conf/vhosts/badapple.net.conf
# $Header: 
/home/cvsroot/gentoo-x86/net-www/apache/files/conf/Vhosts.conf,v 1.2 
2002/05/04 23:23:01
woodchip Exp $

VirtualHost *
ServerName badapple.net
ServerAlias www.badapple.net
DocumentRoot /var/www/badapple.net/htdocs
ScriptAlias /cgi-bin/ /var/www/badapple.net/cgi-bin/
TransferLog /var/log/apache/badapple.net-access.log
RefererLog /var/log/apache/badapple.net-referer.log
ErrorLog /var/log/apache/badapple.net-error.log
Directory /var/www/badapple.net/htdocs
Options -Indexes -FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
/Directory
Directory /var/www/badapple.net/cgi-bin
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
/Directory
/VirtualHost
kashani
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Apache2 things vhost directories are not directories?

2005-05-15 Thread A. Khattri
On Sun, 15 May 2005, kashani wrote:

 I'm guessing that you haven't defined /var/www/* as directories and
 given them permissions. In my Apache1 installtion I have these lines in
 commonapache.conf.

 #Restricted set of options
 Directory /
Options -All -Multiviews
AllowOverride None
Order deny,allow
Deny from all
 /Directory

On one of web servers, all the vhosts are under /home so instead of adding
the directives to each vhost, I simply have this in commonapache.conf:

Directory /home/*/html
AllowOverride All
Options MultiViews -Indexes Includes FollowSymLinks
Order allow,deny
Allow from all
/Directory

Directory /home/*/cgi-bin
 Options +ExecCGI -Includes -Indexes
 SetHandler cgi-script
/Directory


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Apache2 things vhost directories are not directories?

2005-05-15 Thread sIbOk
Take a look to this thread, maybe it helps to you

http://forums.gentoo.org/viewtopic-t-319429-highlight-.html

2005/5/16, A. Khattri [EMAIL PROTECTED]:
 On Sun, 15 May 2005, kashani wrote:
 
  I'm guessing that you haven't defined /var/www/* as directories and
  given them permissions. In my Apache1 installtion I have these lines in
  commonapache.conf.
 
  #Restricted set of options
  Directory /
 Options -All -Multiviews
 AllowOverride None
 Order deny,allow
 Deny from all
  /Directory
 
 On one of web servers, all the vhosts are under /home so instead of adding
 the directives to each vhost, I simply have this in commonapache.conf:
 
 Directory /home/*/html
 AllowOverride All
 Options MultiViews -Indexes Includes FollowSymLinks
 Order allow,deny
 Allow from all
 /Directory
 
 Directory /home/*/cgi-bin
  Options +ExecCGI -Includes -Indexes
  SetHandler cgi-script
 /Directory
 
 --
 
 --
 gentoo-user@gentoo.org mailing list
 
 


-- 
Cualquier hijo de puta sabe lo que darte si tiene que dolerte, pero no
cualquier hijo de puta saber lo que darte si tiene que gustarte. Yo
soy sIbOk un hijo puta especial...!!

-- 
gentoo-user@gentoo.org mailing list