Use CGI with suExec without vhost

2008-03-25 Thread Nicolas Letellier
Hello.

I use FreeBSD 7 with apache13-modssl. I compiled apache with SuExec
support.
However, my CGI programs wirtual host are not wrapped by
SuExec. I don't want to use a vhost (i have only one application on my
apache: Nagios). If I install a CGI program in a vhost with User/Group
directive, SuExec works.

How could solve this problem?

Thanks.

 - Nicolas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-04 Thread Peter A. Giessel
On Saturday, 2006, November 4 at 9:22, [EMAIL PROTECTED] (Wasp King) wrote:

Peter,
   
  thanks. it now works alsoa 3rd question: how can my apache2.2 does nto 
start automatically upon rebooting?  /usr/local/etc/rc.d does have the file 
apahce22.sh, and has the permision -r-xr-xr-x, owned by root. so it should 
start 
automatically?

Try adding:
apache22_enable=YES
in /etc/rc.conf


Peter A. Giessel [EMAIL PROTECTED] wrote:
  On Thursday, 2006, November 2 at 16:19, [EMAIL PROTECTED] (Wasp King) 
wrote:

Still cannot get http://cyber***.com/~user3 to work
though. they seem to change everything with a newer
version of apache...

Check out the:

# User home directories
Include etc/apache22/extra/httpd-userdir.conf


inclusion in your httpd.conf (and of course httpd-userdir.conf ).

For Apache 2.2 they modularized the configuration file, which is
VERY nice when you are making changes to a specific part and don't
want to botch up the rest of your config, but it takes some getting
used to.

_

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin, 1755

Tyrants and would be tyrants have always claimed that free men and
women are weak and decadent until the day that free men and women
defeat them - George W. Bush, 2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


vhost does not work Apache2.2

2006-11-02 Thread Wasp King
I did a clean install of FreeBSD 6.1 (from CD), then
installed Apache2.2 using ports. Apache works fine if
I donot change anything in the config files (all it
says is it works!)...however,

1). if I change the line 
DocumentRoot /usr/local/www/apache22/data
to DocumentRoot /usr/home/user1/www (and disable the
above line with # in front of cours), then it shows
the message 

Forbidden
You don't have permission to access / on this server.
this is despite the dirs has the right permissions. 

2). I can move all the contents under /user1/www to
/usr/local/www/apache22/data and then it works
fine...howver, if I enable the vhosts, by activating
the line in httpd.conf:

Include etc/apache22/extra/httpd-vhosts.conf

then I get the same error!

I did not have any problems with Apache 2.0 on a
different FreeBSD (4.2) server...I think on that one I
did not use the vhosts option but put all the virtual
hosts in the httpd.conf file though.

This is very confusing to me...


 
__
Check out the New Yahoo! Mail - Fire up a more powerful email and get things 
done faster. 
(http://advision.webevents.yahoo.com/mailbeta) 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Peter A. Giessel


On 2006/11/02 13:00, Wasp King seems to have typed:
 I did a clean install of FreeBSD 6.1 (from CD), then
 installed Apache2.2 using ports. Apache works fine if
 I donot change anything in the config files (all it
 says is it works!)...however,
 
 1). if I change the line 
 DocumentRoot /usr/local/www/apache22/data
 to DocumentRoot /usr/home/user1/www (and disable the
 above line with # in front of cours), then it shows
 the message 
 
 Forbidden
 You don't have permission to access / on this server.
 this is despite the dirs has the right permissions. 

Did you change the first
Directory 
directive to also be document root?  In my httpd.conf, this is around
line 175, and it says:
#
# This should be changed to whatever you set DocumentRoot to.
#
Directory something

 2). I can move all the contents under /user1/www to
 /usr/local/www/apache22/data and then it works
 fine...howver, if I enable the vhosts, by activating
 the line in httpd.conf:
 
 Include etc/apache22/extra/httpd-vhosts.conf
 
 then I get the same error!


Did you make any entries in the httpd-vhosts.conf file?  Are any of
the VirtualHost *:80 directives uncommented?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Wasp King
yes, I have commented out the sample ones, and yes, I
added my own...

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/home/user3/www
ServerName www.cyber***.org
ErrorLog /usr/httplog/cyber***.err
CustomLog /usr/httplog/cyber***.log common
/VirtualHost  


--- Peter A. Giessel [EMAIL PROTECTED] wrote:
 
 Did you make any entries in the httpd-vhosts.conf
 file?  Are any of
 the VirtualHost *:80 directives uncommented?
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Derek Ragona
Make sure you are using the correct httpd.conf file.  When I upgraded to 
2.2 from 1.X that was my problem with my setup.  The 2.2 uses a different 
location for the default httpd.conf file.


-Derek


At 04:41 PM 11/2/2006, Wasp King wrote:

yes, I have commented out the sample ones, and yes, I
added my own...

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/home/user3/www
ServerName www.cyber***.org
ErrorLog /usr/httplog/cyber***.err
CustomLog /usr/httplog/cyber***.log common
/VirtualHost


--- Peter A. Giessel [EMAIL PROTECTED] wrote:

 Did you make any entries in the httpd-vhosts.conf
 file?  Are any of
 the VirtualHost *:80 directives uncommented?



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Peter A. Giessel
On 2006/11/02 13:41, Wasp King seems to have typed:
 yes, I have commented out the sample ones, and yes, I
 added my own...

Make sure:
NameVirtualHost *:80
is uncommented at the beginning of your httpd-vhosts.conf file.

Did you try the -S command line option to verify you httpd-vhosts.conf
file?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Peter A. Giessel
On 2006/11/02 13:41, Wasp King seems to have typed:
 yes, I have commented out the sample ones, and yes, I
 added my own...

It sounds like you directory access is too restrictive.

Maybe try adding to your httpd.conf something like:
Directory /usr/home/user3/www
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
/Directory
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vhost does not work Apache2.2

2006-11-02 Thread Wasp King
Thanks!! Now I understand why the changes would make
it not work...I noticed that the
/usr/local/www/apache22 was specified in a Directory
statement, so any change would make it not working...

 I have added the following so all users are changed:

Directory /usr/home/*/www/
   Options Includes FollowSymLinks ExecCGI
   AddHandler server-parsed .shtml
   AddHandler cgi-script .cgi .pl
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

Still cannot get http://cyber***.com/~user3 to work
though.  they seem to change everything with a newer
version of apache...

--- Peter A. Giessel [EMAIL PROTECTED] wrote:

 On 2006/11/02 13:41, Wasp King seems to have typed:
  yes, I have commented out the sample ones, and
 yes, I
  added my own...
 
 It sounds like you directory access is too
 restrictive.
 
 Maybe try adding to your httpd.conf something like:
 Directory /usr/home/user3/www
 Options Indexes FollowSymLinks
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 



 

Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates 
(http://voice.yahoo.com)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


private vhost

2006-05-24 Thread Ralphy
hello 

i would like to ask what command can show me the privates vhosts 'ip' in my 
root , i have some ips 'private in root' and wanna check wich of them are , thx
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache vhost help.

2005-04-24 Thread Perttu Laine
I have domain configured so *.domain.tld are A record to same IP. Now
I have apache vhosts so www.domain.tld and domain.tld goes to apache
data dir and webmail.domain.tld goes to webmail data dir.
Problem is howto forward those all others to certain directory. s it
possible to make *.domain.tld vhost to go in one dir. so anything else
than domain.tld, www.domain.tld and webmail.domain.tld goes to like
/www-data/somedir.

One solution would be make that somedir to default root, but cannot
use it 'cause I have other domains on same apache taht I have to
handle differently.

Someone known what I mean? Or even how to do this? :)

-- 
kpn @ IRCnet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache vhost help.

2005-04-24 Thread Lis
http://www.onlamp.com/pub/a/apache/2003/07/24/vhosts.html
- Original Message - 
From: Perttu Laine [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Sunday, April 24, 2005 12:58 PM
Subject: apache vhost help.


I have domain configured so *.domain.tld are A record to same IP. Now
I have apache vhosts so www.domain.tld and domain.tld goes to apache
data dir and webmail.domain.tld goes to webmail data dir.
Problem is howto forward those all others to certain directory. s it
possible to make *.domain.tld vhost to go in one dir. so anything else
than domain.tld, www.domain.tld and webmail.domain.tld goes to like
/www-data/somedir.
One solution would be make that somedir to default root, but cannot
use it 'cause I have other domains on same apache taht I have to
handle differently.
Someone known what I mean? Or even how to do this? :)
--
kpn @ IRCnet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache vhost help.

2005-04-24 Thread Duo
Perttu Laine wrote:
I have domain configured so *.domain.tld are A record to same IP. Now
I have apache vhosts so www.domain.tld and domain.tld goes to apache
data dir and webmail.domain.tld goes to webmail data dir.
Problem is howto forward those all others to certain directory. s it
possible to make *.domain.tld vhost to go in one dir. so anything else
than domain.tld, www.domain.tld and webmail.domain.tld goes to like 
/www-data/somedir.
One solution would be make that somedir to default root, but cannot
use it 'cause I have other domains on same apache taht I have to
handle differently.
Someone known what I mean? Or even how to do this? :)
 

Yes. It is quite simple.
Check out the following example, this is currently how I am setup.
I use a straight Bind directive:
BindAddress *
and then, we add the name directive:
NameVirtualHost *
Then, we can add as many hostnames (provided they have a domain record. 
They MUST have a valid domain record. Either an A or an Alias)

VirtualHost *
   ServerName www.domain1.com
   DocumentRoot /path/to/first/dir
   /VirtualHost
   VirtualHost *
   ServerName www.domain2.net
   DocumentRoot /a/different/pathname
   /VirtualHost
Now, we get freaky.
   VirtualHost *
   ServerName duo.domain2.net
   DocumentRoot /path/to/my/home/dir/duo
   /VirtualHost
   VirtualHost *
   ServerName someonelse.domain1.com
   DocumentRoot /path/to/entirely/different/place
   /VirtualHost
Now, in the above example, my main server Document Root is the same as 
my Virtual host for www.domain2.net. As long as you have legal 
hostnames, you can define them as a Virtual Host. Name based Virtual 
hosting is well described in the apache manual. As it relies mostly on 
the browser telling the server what name its looking for.

Try it and test. Make a copy of your httpd.conf and play a bit. =)
--
Duo.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


counting vhost usage.

2005-02-19 Thread Perttu Laine
Hello!

I'm in need of tool to count usage of certain ip's in connections to
irc-servers. Usage vhosts in other words. Is there any good
shell-script to count that from netstat or where should I go ask help
with this kind of script?

-- 
kpn @ IRCnet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Vhost... use Apache

2004-02-02 Thread Joe Lewis
Exactly.  Learning Faster is a no go.  It never happens.

The secret is :
  It's in the ports, and apache2 is the best (in my opinion)
In other words, build the port, then read the documentation. (from the 
http://httpd.apache.org/ website).

Joe

Charlie Schluting wrote:
Mr Kitt wrote:

To whom it may concern,
 
pls provide me the cmds as well... u may give me an example so that i 
can learn faster n understand better...

Nobody is going to give you commands for basic things. It would just 
take too long. Read the manual.

It sounds like you're wanting to set up apache. It wasn't clear from 
your request. Ok, read the Apache documentation.

Don't ask the same question more than once.
Please wrap your lines at 72 chars.
-Charlie

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Vhost

2004-02-01 Thread Mr Kitt
To whom it may concern,
 
pls provide me the cmds as well... u may give me an example so that i can learn faster 
n understand better...





Regards,

ck ;-)

 


-
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Vhost ?

2004-02-01 Thread Mr Kitt
To whom it may concern,
 
HEllo, lately i have 20 ips, i would like to know the way of making vhosts  dns for 
them? pls help. thanks a lot...



Regards,

ck ;-)

 


-
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Vhost

2004-02-01 Thread Charlie Schluting
Mr Kitt wrote:
To whom it may concern,
 
pls provide me the cmds as well... u may give me an example so that i can learn faster n understand better...

Nobody is going to give you commands for basic things. It would just 
take too long. Read the manual.

It sounds like you're wanting to set up apache. It wasn't clear from 
your request. Ok, read the Apache documentation.

Don't ask the same question more than once.
Please wrap your lines at 72 chars.
-Charlie

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Vhost ?

2004-01-31 Thread Mr Kitt
To whom it may concern,
 
pls provide me the cmds as well... u may give me an example so that i can learn faster 
n understand better...




Regards,

ck ;-)

 


-
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]