Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Mario Brandt
Hallo Andreas,
normalerweise reicht ein Listen 80, damit der apache sowohl auf IPv4
und auf IPv6 lauscht (auf allen verügbaren IP Adresssen).

Ein
sudo netstat -nap
sollte Dir zeigen, ob der httpd prozess schon auf IPv6 port 80 lauscht.

Gruß
Mario

2011/10/19 Andreas Meyer anme...@anup.de:
 Hallo!

 Ich betreibe auf einem Apache

 Server version: Apache/2.2.4 (Linux/SUSE)
 Server built:   Mar 26 2008 12:37:48
 Server's Module Magic Number: 20051115:5
 Server loaded:  APR 1.2.9, APR-Util 1.2.8
 Compiled using: APR 1.2.9, APR-Util 1.2.8
 Architecture:   32-bit
 Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)

 mehrer IP-based und Namebased vhosts. Ich möchte nun einen der
 IP-based vhosts nur mit einer IPv6 Adresse betreiben. Ist eine
 solche mit IPv4 und IPv6 gemischte Betriebsweise möglich, oder
 kann ich mein Vorhaben vergessen? Ich habe gelesen, es bedarf
 eines Listen Eintrags wie [::]:80.
 Nur, wenn ich einen solchen Eintrag zum Eintrag Listen 80 mache,
 dann bekomme ich eine Fehlermeldung, dass der Socket bereits
 benutzt wird und der Apache startet nicht.

 Gibt es eine Lösung für dieses Problem?

 Grüße

   Andreas

 --
                Apache HTTP Server Mailing List users-de
      unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
           sonstige Anfragen an users-de-h...@httpd.apache.org
 --



--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Andreas Meyer
Hallo!

# netstat -nap |grep http
tcp0  0 :::80   :::*LISTEN  
7083/httpd2-prefork 
tcp0  0 :::443  :::*LISTEN  
7083/httpd2-prefork

Das Problem ist, ich bekomme beim Zugriff auf den IPv6 Host einen 403.

Zugriff verweigert!
Der Zugriff auf das angeforderte Verzeichnis ist nicht möglich. Entweder ist 
kein Index-Dokument vorhanden oder das Verzeichnis ist zugriffsgeschützt.
Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte 
den Webmaster hierüber.
Error 403

Ich weis nicht, wie ich das Problem lösen soll.

  Andreas

Mario Brandt jbl...@gmail.com wrote:

 Hallo Andreas,
 normalerweise reicht ein Listen 80, damit der apache sowohl auf IPv4
 und auf IPv6 lauscht (auf allen verügbaren IP Adresssen).
 
 Ein
 sudo netstat -nap
 sollte Dir zeigen, ob der httpd prozess schon auf IPv6 port 80 lauscht.
 
 Gruß
 Mario
 
 2011/10/19 Andreas Meyer anme...@anup.de:
  Hallo!
 
  Ich betreibe auf einem Apache
 
  Server version: Apache/2.2.4 (Linux/SUSE)
  Server built:   Mar 26 2008 12:37:48
  Server's Module Magic Number: 20051115:5
  Server loaded:  APR 1.2.9, APR-Util 1.2.8
  Compiled using: APR 1.2.9, APR-Util 1.2.8
  Architecture:   32-bit
  Server MPM:     Prefork
   threaded:     no
     forked:     yes (variable process count)
 
  mehrer IP-based und Namebased vhosts. Ich möchte nun einen der
  IP-based vhosts nur mit einer IPv6 Adresse betreiben. Ist eine
  solche mit IPv4 und IPv6 gemischte Betriebsweise möglich, oder
  kann ich mein Vorhaben vergessen? Ich habe gelesen, es bedarf
  eines Listen Eintrags wie [::]:80.
  Nur, wenn ich einen solchen Eintrag zum Eintrag Listen 80 mache,
  dann bekomme ich eine Fehlermeldung, dass der Socket bereits
  benutzt wird und der Apache startet nicht.
 
  Gibt es eine Lösung für dieses Problem?
 
  Grüße
 
    Andreas
 
  --
                 Apache HTTP Server Mailing List users-de
       unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
            sonstige Anfragen an users-de-h...@httpd.apache.org
  --
 
 
 
 --
 Apache HTTP Server Mailing List users-de 
   unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
sonstige Anfragen an users-de-h...@httpd.apache.org
 --
 


--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Reindl Harald
Ähm ja was ist denn dein Document-Root und was liegt da drinnen?
403 ist normalerweise ein leerer Ordner ohne index.htm/index.php 
index.wasauchimmer
Du musst natürlich den VHost auch konfigurieren!

Am 19.10.2011 22:58, schrieb Andreas Meyer:
 Hallo!
 
 # netstat -nap |grep http
 tcp0  0 :::80   :::*LISTEN
   7083/httpd2-prefork 
 tcp0  0 :::443  :::*LISTEN
   7083/httpd2-prefork
 
 Das Problem ist, ich bekomme beim Zugriff auf den IPv6 Host einen 403.
 
 Zugriff verweigert!
 Der Zugriff auf das angeforderte Verzeichnis ist nicht möglich. Entweder ist 
 kein Index-Dokument vorhanden oder das Verzeichnis ist zugriffsgeschützt.
 Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie 
 bitte den Webmaster hierüber.
 Error 403
 
 Ich weis nicht, wie ich das Problem lösen soll.
 
   Andreas
 
 Mario Brandt jbl...@gmail.com wrote:
 
 Hallo Andreas,
 normalerweise reicht ein Listen 80, damit der apache sowohl auf IPv4
 und auf IPv6 lauscht (auf allen verügbaren IP Adresssen).

 Ein
 sudo netstat -nap
 sollte Dir zeigen, ob der httpd prozess schon auf IPv6 port 80 lauscht.

 Gruß
 Mario

 2011/10/19 Andreas Meyer anme...@anup.de:
 Hallo!

 Ich betreibe auf einem Apache

 Server version: Apache/2.2.4 (Linux/SUSE)
 Server built:   Mar 26 2008 12:37:48
 Server's Module Magic Number: 20051115:5
 Server loaded:  APR 1.2.9, APR-Util 1.2.8
 Compiled using: APR 1.2.9, APR-Util 1.2.8
 Architecture:   32-bit
 Server MPM: Prefork
  threaded: no
forked: yes (variable process count)

 mehrer IP-based und Namebased vhosts. Ich möchte nun einen der
 IP-based vhosts nur mit einer IPv6 Adresse betreiben. Ist eine
 solche mit IPv4 und IPv6 gemischte Betriebsweise möglich, oder
 kann ich mein Vorhaben vergessen? Ich habe gelesen, es bedarf
 eines Listen Eintrags wie [::]:80.
 Nur, wenn ich einen solchen Eintrag zum Eintrag Listen 80 mache,
 dann bekomme ich eine Fehlermeldung, dass der Socket bereits
 benutzt wird und der Apache startet nicht.



signature.asc
Description: OpenPGP digital signature


Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Andreas Meyer
Hallo!

Also der vhost ist ein PHP-Onlineshop und funktioniert mit einer IPv4 Adresse
problemlos. Weil mir die IPv4 Adressen ausgegangen sind dachte ich, ich
versuchs einfach mal mit meinem IPv6 Netz.
Ich tausche also lediglich die IPv4 Adresse mit einer IPv6 Adresse aus
und starte den Apache neu. Dann bekomme ich einen 403.

# ip -6 route
2a01:4f8:61:2120::/59 dev eth0  metric 1024  expires 21104421sec mtu 1500 
advmss 1440 hoplimit 4294967295
fe80::/64 dev eth0  metric 256  expires 21104304sec mtu 1500 advmss 1440 
hoplimit 4294967295
default via 2a01:4f8:61:2120::1 dev eth0  metric 1024  expires 21134932sec mtu 
1500 advmss 1440 hoplimit 4294967295

# ip -6 addr
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qlen 1000
inet6 2a01:4f8:61:2122::2/64 scope global 
   valid_lft forever preferred_lft forever

# ping6 www.heise.de
PING www.heise.de(www.heise.de) 56 data bytes
64 bytes from www.heise.de: icmp_seq=1 ttl=59 time=4.20 ms

Also dieses 403 macht mir Sorgen. Der Server wäre eigentlich erreichbar,
aber dann kommt der 403.

  Andreas

Reindl Harald h.rei...@thelounge.net wrote:

 Ähm ja was ist denn dein Document-Root und was liegt da drinnen?
 403 ist normalerweise ein leerer Ordner ohne index.htm/index.php 
 index.wasauchimmer
 Du musst natürlich den VHost auch konfigurieren!
 
 Am 19.10.2011 22:58, schrieb Andreas Meyer:
  Hallo!
  
  # netstat -nap |grep http
  tcp0  0 :::80   :::*LISTEN  
  7083/httpd2-prefork 
  tcp0  0 :::443  :::*LISTEN  
  7083/httpd2-prefork
  
  Das Problem ist, ich bekomme beim Zugriff auf den IPv6 Host einen 403.
  
  Zugriff verweigert!
  Der Zugriff auf das angeforderte Verzeichnis ist nicht möglich. Entweder 
  ist kein Index-Dokument vorhanden oder das Verzeichnis ist 
  zugriffsgeschützt.
  Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie 
  bitte den Webmaster hierüber.
  Error 403
  
  Ich weis nicht, wie ich das Problem lösen soll.
  
Andreas
  
  Mario Brandt jbl...@gmail.com wrote:
  
  Hallo Andreas,
  normalerweise reicht ein Listen 80, damit der apache sowohl auf IPv4
  und auf IPv6 lauscht (auf allen verügbaren IP Adresssen).
 
  Ein
  sudo netstat -nap
  sollte Dir zeigen, ob der httpd prozess schon auf IPv6 port 80 lauscht.
 
  Gruß
  Mario
 
  2011/10/19 Andreas Meyer anme...@anup.de:
  Hallo!
 
  Ich betreibe auf einem Apache
 
  Server version: Apache/2.2.4 (Linux/SUSE)
  Server built:   Mar 26 2008 12:37:48
  Server's Module Magic Number: 20051115:5
  Server loaded:  APR 1.2.9, APR-Util 1.2.8
  Compiled using: APR 1.2.9, APR-Util 1.2.8
  Architecture:   32-bit
  Server MPM: Prefork
   threaded: no
 forked: yes (variable process count)
 
  mehrer IP-based und Namebased vhosts. Ich möchte nun einen der
  IP-based vhosts nur mit einer IPv6 Adresse betreiben. Ist eine
  solche mit IPv4 und IPv6 gemischte Betriebsweise möglich, oder
  kann ich mein Vorhaben vergessen? Ich habe gelesen, es bedarf
  eines Listen Eintrags wie [::]:80.
  Nur, wenn ich einen solchen Eintrag zum Eintrag Listen 80 mache,
  dann bekomme ich eine Fehlermeldung, dass der Socket bereits
  benutzt wird und der Apache startet nicht.
 


--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Bjoern Hoehrmann
* Andreas Meyer wrote:
Ich tausche also lediglich die IPv4 Adresse mit einer IPv6 Adresse aus
und starte den Apache neu. Dann bekomme ich einen 403.

Der Grund dafür steht im error_log.
-- 
Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Andreas Meyer
Bjoern Hoehrmann derhoe...@gmx.net wrote:

 * Andreas Meyer wrote:
 Ich tausche also lediglich die IPv4 Adresse mit einer IPv6 Adresse aus
 und starte den Apache neu. Dann bekomme ich einen 403.
 
 Der Grund dafür steht im error_log.

Nein, der Zugriffsversuch mit dem 403 wurde nicht geloggt.

  Andreas

--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an users-de-unsubscr...@httpd.apache.org
   sonstige Anfragen an users-de-h...@httpd.apache.org
--



Re: IPv6 mit dem Apache Webserver

2011-10-19 Thread Reindl Harald


Am 20.10.2011 00:28, schrieb Andreas Meyer:
 Bjoern Hoehrmann derhoe...@gmx.net wrote:
 
 * Andreas Meyer wrote:
 Ich tausche also lediglich die IPv4 Adresse mit einer IPv6 Adresse aus
 und starte den Apache neu. Dann bekomme ich einen 403.

 Der Grund dafür steht im error_log.
 
 Nein, der Zugriffsversuch mit dem 403 wurde nicht geloggt

Kann nicht sein

Im Error und/oder Access-Log muss irgendwas auftauchen
Wo das zueghörige liegt ist allerdings auch eine Frage
weil das ja auf VirtualHost und Directory-Ebene
unterschiedlich sein kann

Ich sehe im ganzen Thread die betreffende Konfiguration des VHosts nicht




signature.asc
Description: OpenPGP digital signature


Re: [users@httpd] apache seems to be busy

2011-10-19 Thread Petr Hracek
Hello Tom,

as you mentioned I need to do stress test of the application.
How to do that for SSL connection?

best regards
Petr

Dne 18. října 2011 13:59 Tom Evans tevans...@googlemail.com napsal(a):
 On Tue, Oct 18, 2011 at 12:11 PM, Petr Hracek phrac...@gmail.com wrote:
 Dear users,

 There are run most AJAX requests. After increasing the values
 StartServers 15
 MinSpareServers 10
 MaxSpareServers 30

 == error_log ==
 [Tue Oct 18 11:25:59 2011] [info] server seems busy, (you may need to
 increase StartServers, or Min/MaxSpareServers), spawning 8 children,
 there are 0 idle, and 23 total children
 [Tue Oct 18 11:26:00 2011] [info] server seems busy, (you may need to
 increase StartServers, or Min/MaxSpareServers), spawning 16 children,
 there are 7 idle, and 31 total children

 Can there be a problem that AJAX objects did not close the connections 
 properly?

 Thank you in advance


 Anything is possible, but no, that is unlikely.

 Do you have more of these messages in the log? It looks like you don't
 start enough children to serve your peak load. These two log entries
 show that your server started with 15, and within a few seconds
 started an additional 16 children, indicating that you need to
 increase your StartServers.

 Forking isn't free, so you will want to start as many child processes
 as you will probably need, and allow them to stay alive rather than
 killing them off when you get quiet, just to respawn them again when
 you are busy. The trade-off from doing this is that each child
 consumes memory.

 Therefore:

 Set StartServers and MaxSpareServers to the same value, and increase
 both until you don't get these messages - we increase MaxSpareServers
 so that it doesn't just kill them all off in quiet periods.

 Once you have found how many server children you need, set
 StartServers to that value, MaxSpareServers to maybe 80% of that
 value, and MinSpareServers to about 10% of that value.

 The next step is working out how many server children is too many. To
 do this, you need to stress test your application, trying to get it
 super busy - basically, in fact, until Apache croaks that you need to
 increase MaxClients.

 Stop the test, increase MaxClients (if you increase it above 256, you
 also need to increase ServerLimit), repeat test. Do this until your
 server runs out of memory/CPU/disk - that is your absolute limit to
 number of server children. I'd normally step back a bit from that, to
 allow some overhead.

 As an example, one of our busy apache servers has StartServers 200,
 MinSpareServer 20, MaxSpareServers 160, MaxClients 512, ServerLimit
 512. When we approach MaxClients, the box is approaching running out
 of memory.

 Hope that helps

 Cheers

 Tom

 -
 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-unsubscr...@httpd.apache.org
      from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org





-- 
Best Regards / S pozdravem
Petr Hracek

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Rewrite rules working properly in the htaccess but no in the virtualhost

2011-10-19 Thread Eduard B

Hello,

Im 'having problems with the following rewrite rules. If I put this rewrite 
rules on the .htaccess in the document root of the virtual hosts, the rules 
work properly showing a robots.txt if 
the user don't has one. But when I try to put the rules in the virtualhost it 
looks like I can't redirect to the Alias

VirtualHost 192.168.0.01:80

  ServerAdmin hostmas...@server.tld

  DocumentRoot /home/xx.com/web

  ServerName xx.com

  DirectoryIndex index.html index.php index.htm 



#This is the standard robots.txt ww what to have all the virtualhosts



 Alias /robots-123456789.txt /tmp/robots2.txt



RewriteEngine On

RewriteCond %{IS_SUBREQ} false



#It redirect to our robots.txt  (defined previously with the alias) if the user 
don't has a robots.txt i their home directory

RewriteCond %{DOCUMENT_ROOT}/robots.txt !-f

RewriteRule robots.txt$ /robots-123456789.txt



/VirtualHost



rewrite debug in virtualhost:

192.168.0.01 - - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (2) init rewrite 
engine with requested uri /robots.txt
192.168.0.01 - - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (3) applying 
pattern '.*robots\.txt$' to uri '/robots.txt'
192.168.0.01 - - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (2) rewrite 
'/robots.txt' - '/robots-123456789.txt'
192.168.0.01- - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (2) local path 
result: /robots-123456789.txt
192.168.0.01 - - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (2) prefixed with 
document_root to /home/frikadas.org/web/robots-123456789.txt
192.168.0.01 - - [19/Oct/2011:09:47:12 +0200] 
[www.xx.org/sid#7f12ade87e00][rid#7f12ae133640/initial] (1) go-ahead with 
/home/frikadas.org/web/robots-123456789.txt [OK]



rewrite debug in .htaccess

192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (2) init rewrite 
engine with requested uri /robots.txt
192.168.0.01- - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (1) pass through 
/robots.txt
192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (3) [perdir 
/home/frikadas.org/web/] strip per-dir prefix: 
/home/frikadas.org/web/robots.txt - robots.txt
192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (3) [perdir 
/home/frikadas.org/web/] applying pattern '.*robots\.txt$' to uri 'robots.txt'
192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (2) [perdir 
/home/frikadas.org/web/] rewrite 'robots.txt' - '/robots-123456789.txt'

192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16cfb530/initial] (1) [perdir 
/home/frikadas.org/web/] internal redirect with /robots-123456789.txt [INTERNAL 
REDIRECT]

192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16d00ba0/initial/redir#1] (2) init 
rewrite engine with requested uri /robots-123456789.txt
192.168.0.01 - - [19/Oct/2011:09:44:37 +0200] 
[www.xx.org/sid#7fcb16a4fe00][rid#7fcb16d00ba0/initial/redir#1] (1) pass 
through /robots-123456789.txt


It apears that in the .htacces file apache is able to redirect to the
alias  but in the virtualhost  it apears that it can't redirect to it!

I tested it in:
Linux
Server Version: Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze3 with Suhosin-Patch
Server Built: Sep 29 2011 20:59:05

and in:
FreeBSD 6.3-RELEASE-p3
apache-2.0.63_3   Server Built: Mar 2 2010 02:19:12



My qüestion is, what I have to do to get it working in the virtualhost ?

Thanks!




  

Re: [users@httpd] apache seems to be busy

2011-10-19 Thread Tom Evans
On Wed, Oct 19, 2011 at 7:52 AM, Petr Hracek phrac...@gmail.com wrote:
 Hello Tom,

 as you mentioned I need to do stress test of the application.
 How to do that for SSL connection?

 best regards
 Petr


ab, siege, flood, jmeter, grinder, httperf, OpenSTA, curl-loader,
Spirent Avalanche (not free)…

Cheers

Tom

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Rewrite rules working properly in the htaccess but no in the virtualhost

2011-10-19 Thread Eric Covener
In vhost context, rewriting happens before aliases are resolved.
In htaccess context, it happens after.

I don't understand your issue, but that seems to be the cause.

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Rewrite rules working properly in the htaccess but no in the virtualhost

2011-10-19 Thread Eric Covener
On Wed, Oct 19, 2011 at 7:49 AM, Eric Covener cove...@gmail.com wrote:
 In vhost context, rewriting happens before aliases are resolved.
 In htaccess context, it happens after.

You can use Directory in httpd.conf and get the later behavior.


 I don't understand your issue, but that seems to be the cause.




-- 
Eric Covener
cove...@gmail.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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Re: SSL certificates and virtual hosts

2011-10-19 Thread Nick Tkach
As long as you don't need to support certain browsers. IIRC Android  2.2 for 
example won't support wildcard certs. 

Sent from my iPhone

On Oct 18, 2011, at 7:00 PM, Andrew Schulman and...@alumni.utexas.net wrote:

  Our website account with our ISP has one fixed IP address and allows
 a number of virtual hosts. The main site has an SSL certificate for
 secure access. I wish to add another certificate for one of the named
 virtual hosts. According to Tech Support the account only allows one
 SSL certificate per IP address.
 
 You can solve this problem by using a wildcard and/or multi-domain
 certificate.  It's a single certificate that covers multiple hosts and/or
 domains.  You can get them fairly cheaply, for example the Verified (Class
 2) certificate from startssl.com.
 
 We do this with a setup of 6 virtual hosts that include three hosts (dev,
 test, www) in each of two different domains.  A single certificate covers
 them all.  Apache writes an error message to the log about using SSL with
 multiple virtual hosts, but the message is wrong and we ignore it.  It
 works just fine.
 
 
 -
 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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Luciano de Souza

Hello listers,

This is my first message. I am trying to walk the first steps in web 
development, so I am pleased to enter in Apache's world.


I have two test CGI programs writen in Pascal. The first one writes some 
input using writeln. The second one uses specific CGI classes. The 
first runs, the second doesn't.


The natural conclusion would be: Luciano, you are in the wrong list. 
The problem is in your Pascal code, not in Apache. This truth would 
seem logical if the error was  produced in other machines. Yes, the 
first example runs in other machines; the second doesn't run only in mine.


Permissions? the problem can be lack of permissions in CGI folder. No, 
for each file in /usr/lib/cgi-bin, I did:


sudo chmod +x file

Apache is configured because the first example runs. All the files in 
cgi-bin has enough permission to be executed. There's no error in Pascal 
code because both examples run in other machine.


In browser, I have always the error 500: Internal  exception server. In 
Apache's log, I have:


[Tue Oct 18 15:50:36 2011] [error] (8)Exec format error: exec of 
'/usr/lib/cgi-bin/test3' failed
[Tue Oct 18 15:50:36 2011] [error] [client 127.0.0.1] Premature end of 
script headers: test3


Does someone have any idea what it can be done or witch is the nature of 
the problem?


Luciano


cgi1.tar.gz
Description: GNU Zip compressed data


cgi2.tar.gz
Description: GNU Zip compressed data

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Marcin 'Rambo' Roguski
 sudo chmod +x file

Shouldn't you add interpreter line as well?

#!/bin/interpreter

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Luciano de Souza
If I understood, you are questioning that in the first line of my codes, 
I dont't have a line like:



#!/usr/bin/env lua

#!/usr/bin/env python


Well, in Pascal, it's not possible since it was compiled.


My english is really not very well, so I can have understood wrongly.



If I understood, you are questioning that in the first line of my codes, 
I dont't have a line like:



#!/usr/bin/env lua

#!/usr/bin/env python


Well, in Pascal, it's not possible since it was compiled.


My english is really not very well, so I can have understood wrongly.


Em 19-10-2011 11:37, Marcin 'Rambo' Roguski escreveu:

sudo chmod +x file

Shouldn't you add interpreter line as well?

#!/bin/interpreter

-
The official User-To-User support forum of the Apache HTTP Server Project.
SeeURL:http://httpd.apache.org/userslist.html  for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





Re: [users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Marcin 'Rambo' Roguski
 Well, in Pascal, it's not possible since it was compiled.

The log says apache is confused about the file alone
The other issue I see is that your script don't output http headers - they 
should send at least Content-Type header.

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Luciano de Souza
Yes, I was able to understand this log if the same files shouldn't have 
run in the machine of a friend. In this case, certainly, it would have 
an error in Pascal code. I could ask in a Pascal list and someone could 
recognise the error.


The problem is: this programs work in the machine of everyone testing 
it. So I can imagine the problem is due a Pascal code. It is necessarily 
due to another fact.


Em 19-10-2011 11:49, Marcin 'Rambo' Roguski escreveu:

Well, in Pascal, it's not possible since it was compiled.

The log says apache is confused about the file alone
The other issue I see is that your script don't output http headers - they
should send at least Content-Type header.

-
The official User-To-User support forum of the Apache HTTP Server Project.
SeeURL:http://httpd.apache.org/userslist.html  for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [users@httpd] Rewrite rules working properly in the htaccess but no in the virtualhost

2011-10-19 Thread Eduard B

Yes! In a directory container it runs as desired!

With this in each virtualhost there is a default robots.txt if the user don't 
put any robots.

Thanks!


 Date: Wed, 19 Oct 2011 07:49:21 -0400
 From: cove...@gmail.com
 To: users@httpd.apache.org
 Subject: Re: [users@httpd] Rewrite rules working properly in the htaccess but 
 no in the virtualhost
 
 On Wed, Oct 19, 2011 at 7:49 AM, Eric Covener cove...@gmail.com wrote:
  In vhost context, rewriting happens before aliases are resolved.
  In htaccess context, it happens after.
 
 You can use Directory in httpd.conf and get the later behavior.
 
 
  I don't understand your issue, but that seems to be the cause.
 
 
 
 
 -- 
 Eric Covener
 cove...@gmail.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-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org
 
  

Re: [users@httpd] A CGI test program with a misterious error

2011-10-19 Thread Eric Covener
 The problem is: this programs work in the machine of everyone testing it. So
 I can imagine the problem is due a Pascal code. It is necessarily due to
 another fact.

If the issue is the exec format error, the question would be if/how
you run it outside of a CGI on the affected machine. This error means
your OS doesn't know how to execute it.

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Georgi Georgiev
I have that lines on the config, but the result is same. One person sayed
here that ifmudule line is wrong. Whether the problem may be here? I added
new lines so there is
#FilesMatch ^\.ht
 #   Order allow,deny
  #  Deny from all
   # Satisfy All
#/FilesMatch


FilesMatch \.php$
SetHandler application/x-httpd-php
   SetHandler application/x-httpd-php-source
/FilesMatch
 is it right?


Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Frank Gingras

On 19/10/2011 11:03 AM, Georgi Georgiev wrote:

I have that lines on the config, but the result is same. One person sayed
here that ifmudule line is wrong. Whether the problem may be here? I added
new lines so there is
#FilesMatch ^\.ht
  #   Order allow,deny
   #  Deny from all
# Satisfy All
#/FilesMatch


FilesMatch \.php$
SetHandler application/x-httpd-php
SetHandler application/x-httpd-php-source
/FilesMatch
  is it right?



Georgi,

You're not using IfModule, and you shouldn't really either.

Also, SetHandler application/x-httpd-php-source is wrong in this context.

You only need SetHandler application/x-httpd-php to process .php files.

Frank

-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Georgi Georgiev
After edit the same thing... Whether the problem may be in other section (or
line) to post it here or php..and I don't know. Searched, reading
documentation, asking people - not found solution..


Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Frank Gingras

On 19/10/2011 11:42 AM, Georgi Georgiev wrote:

After edit the same thing... Whether the problem may be in other section (or
line) to post it here or php..and I don't know. Searched, reading
documentation, asking people - not found solution..



Georgi,

What is happening, exactly, and what did you expect to happen?

Frank

-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Georgi Georgiev
I have domain (documentroot - /var/www/htdocs) and subdirectory wordpress,
but when open it with browser ...//wordpress it lists the .php files
(example wp-config, wp-login.php etc) instead of loading the page.
Previously solved the problem as put DirecoryIndex, but now whatever I try
to do when open the wp again list the php files..


[users@httpd] Windows 7 httpd.conf setting saved after un-install

2011-10-19 Thread Robert Waligora
First, I'm a seasoned professionaly and I know (mostly) what I'm doing. That
said, I'm experiencing very strange behaviour with Apache 2.2 on Windows 7
machine.

I uninstalled Apache because I couldn't get the DocumentRoot directory to
work.
I deleted the Apache2.2 directory from my hard drive.
I emptied the trash can.
I rebooted the computer (after all it is windows)
I re-installed the latest version of Apache 2.2.21
I went to the Apache2.2/conf folder and opened the httpd.conf file (not
sample) in TextPad
The changes that I made to the file before re-installing it were still
there.

I repeated this process 3 times, I even change the location where I
installed Apache with the same results.

Can anyone explain the Windows Miracle? Because, really, I would like a
clean httpd.conf file so I can start over.

Please don't reply to me with your Windows XP advice. Windows 7 is nothing
like XP, Vista or 2008 etc... I'm not being a jerk, but the security model
in Windows 7 is batty. I also know that this would be solved my installing
Linux etc... Wish I could, but that isn't an option (at least not right
now).

-- 
Robert Waligora ~ http://www.waligora.com
Cell Phone: 440-941-2262 (new cell phone number)
Home Phone: 440-519-0733


Re: [users@httpd] Windows 7 httpd.conf setting saved after un-install

2011-10-19 Thread Marcin 'Rambo' Roguski
 Can anyone explain the Windows Miracle? Because, really, I would like a
 clean httpd.conf file so I can start over.

You need to escalate your rights to administrator, like running notepad as 
administrator. Otherwise window saves user copy of the file.

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Frank Gingras

On 19/10/2011 12:26 PM, Georgi Georgiev wrote:

I have domain (documentroot - /var/www/htdocs) and subdirectory wordpress,
but when open it with browser ...//wordpress it lists the .php files
(example wp-config, wp-login.php etc) instead of loading the page.
Previously solved the problem as put DirecoryIndex, but now whatever I try
to do when open the wp again list the php files..


Georgi,

Please pastebin the relevant configuration. In your case, your vhost would be a 
good start.

Frank

-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Windows 7 DocumentRoot directive not working

2011-10-19 Thread Robert Waligora
I installed Apache 2.2.21 on Windows 7 machine. Test It Works page is
displayed. I changed the following in httpd.conf:

DocumentRoot e:/webroot/
Directory e:/webroot/

I created webroot folder on e drive (also tried with c drive and without
ending slash).
Put a sample index.html file in that folder with a different message (i.e.
not It Works).
Restarted the Apached service, but still get the It Works message. I opend
my new index.html file will a browser to verify that there are no errors
with the html code.
I made sure that the is only 1 DocumentRoot directive in the httpd.conf
file.

Access.log file shows that get requests are coming in.
Error.log file doesn't show any error messages

Any ides?

-- 
Robert Waligora ~ http://www.waligora.com
Cell Phone: 440-941-2262 (new cell phone number)
Home Phone: 440-519-0733


Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Georgi Georgiev
http://pastebin.com/TpRkeaVq some lines are commented (but tryed and when
teh were uncommented - just experiments)


Re: [users@httpd] Windows 7 DocumentRoot directive not working

2011-10-19 Thread Serge Fonville
Hi,

Assuming you restarted apache after changing the httpd.conf..

What output do you get from:
httpd.exe -S
sc query | find /i apache
tasklist /fi Imagename eq httpd.exe /svc

HTH

Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl

Convince Google!!
They need to add GAL support on Android (star to agree)
http://code.google.com/p/android/issues/detail?id=4602



2011/10/19 Robert Waligora bmw929...@gmail.com:
 I installed Apache 2.2.21 on Windows 7 machine. Test It Works page is
 displayed. I changed the following in httpd.conf:

 DocumentRoot e:/webroot/
 Directory e:/webroot/

 I created webroot folder on e drive (also tried with c drive and without
 ending slash).
 Put a sample index.html file in that folder with a different message (i.e.
 not It Works).
 Restarted the Apached service, but still get the It Works message. I opend
 my new index.html file will a browser to verify that there are no errors
 with the html code.
 I made sure that the is only 1 DocumentRoot directive in the httpd.conf
 file.

 Access.log file shows that get requests are coming in.
 Error.log file doesn't show any error messages

 Any ides?
 --
 Robert Waligora ~ http://www.waligora.com
 Cell Phone: 440-941-2262 (new cell phone number)
 Home Phone: 440-519-0733


-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Windows 7 DocumentRoot directive not working

2011-10-19 Thread Robert Waligora
I found the issue. I edited the httpd.conf file with textpad. But, textpad
wasn't running as administrator. So, my changes were saved in an unknow user
location. Every time I opened the httpd.conf file, it opened my personal
version instead of the file, not the real file. So, my changes were never
saved. Even though, it appeared to change. Thanks Microsoft. I love opening
a file and having the O.S. open a different file, but not telling me that it
opened a different file.

On Wed, Oct 19, 2011 at 1:02 PM, Serge Fonville serge.fonvi...@gmail.comwrote:

 Hi,

 Assuming you restarted apache after changing the httpd.conf..

 What output do you get from:
 httpd.exe -S
 sc query | find /i apache
 tasklist /fi Imagename eq httpd.exe /svc

 HTH

 Kind regards/met vriendelijke groet,
 Serge Fonville
 http://www.sergefonville.nl

 Convince Google!!
 They need to add GAL support on Android (star to agree)
 http://code.google.com/p/android/issues/detail?id=4602



 2011/10/19 Robert Waligora bmw929...@gmail.com:
  I installed Apache 2.2.21 on Windows 7 machine. Test It Works page is
  displayed. I changed the following in httpd.conf:
 
  DocumentRoot e:/webroot/
  Directory e:/webroot/
 
  I created webroot folder on e drive (also tried with c drive and
 without
  ending slash).
  Put a sample index.html file in that folder with a different message
 (i.e.
  not It Works).
  Restarted the Apached service, but still get the It Works message. I
 opend
  my new index.html file will a browser to verify that there are no errors
  with the html code.
  I made sure that the is only 1 DocumentRoot directive in the httpd.conf
  file.
 
  Access.log file shows that get requests are coming in.
  Error.log file doesn't show any error messages
 
  Any ides?
  --
  Robert Waligora ~ http://www.waligora.com
  Cell Phone: 440-941-2262 (new cell phone number)
  Home Phone: 440-519-0733
 

 -
 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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




-- 
Robert Waligora ~ http://www.waligora.com
Cell Phone: 440-941-2262 (new cell phone number)
Home Phone: 440-519-0733


Re: [users@httpd] directoryindexing or what?

2011-10-19 Thread Frank Gingras



On 19/10/11 01:01 PM, Georgi Georgiev wrote:

http://pastebin.com/TpRkeaVq some lines are commented (but tryed and
when teh were uncommented - just experiments)


Georgi,

Best move the DirectoryIndex directive out of the Directory / block.

Also, you keep remove the history from this thread, and it makes it very 
hard to follow. I'm not sure if I asked you this already, but edit your 
vhost instead.


Frank.

-
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-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org