Re: Apachemeldung The requested URL /home/ameyer/public_html was not found on this server

2008-07-10 Thread Rainer Sokoll
On Thu, Jul 10, 2008 at 05:10:38PM +0200, Marcus Müller wrote:

 VirtualHost x.x.x.x
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/ameyer/public_html

 Wenn ich jetzt im Browser die öffentliche IP-Adresse des Server eingebe,
 gelange ich auch auf die gewünschte index.html die unter
 /home/ameyer/public_html abgelegt ist.

So soll es sein :-)

 Gebe ich aber im Browser die Adresse
 http://x.x.x.x/home/ameyer/public_html ein erscheint die Meldung: The
 requested URL /home/ameyer/public_html was not found on this server. Wie
 kommt das ?

Na weil die von Dir verlangte URL (/home/ameyer/public_html) unterhalb
der von Dir definierten DocumentRoot gesucht wird - und da nicht
vorhanden ist.

Rainer

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: Apachemeldung The requested URL /home/ameyer/public_html was not found on this server

2008-07-10 Thread Rene Schmitt
On Thu, 10 Jul 2008 17:10:38 +0200
Marcus Müller [EMAIL PROTECTED] wrote:

 Hallo zusammen,
 
 Ich möchte gerne mehrere Webseiten auf meinem Server ( Apache 2.2.9 )
 anzeigen lassen.
 
 VirtualHost habe ich wie folgt angegeben:
 
 VirtualHost x.x.x.x
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /home/ameyer/public_html
  ErrorLog logs/advertising.error_log
  CustomLog logs/advertising.access_log combined
  Directory /home/ameyer/public_html
  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
  /Directory
 /VirtualHost
 
 Wenn ich jetzt im Browser die öffentliche IP-Adresse des Server eingebe,
 gelange ich auch auf die gewünschte index.html die unter
 /home/ameyer/public_html abgelegt ist.
  
 Gebe ich aber im Browser die Adresse
 http://x.x.x.x/home/ameyer/public_html ein erscheint die Meldung: The
 requested URL /home/ameyer/public_html was not found on this server. Wie
 kommt das ?

Weil der Indianer den internen Pfad ja nicht kennt, hast ja das Doc
Root schon da rein gesetzt hast. 

Du könntest den Doc Root nach /home/ setzen 
und das http://x.x.x.x/ameyer/public_html aufrufen, ist in meinen Augen
aber keine saubere Lösung

Ich benutze für diese Zwecke mod_userdir
dann würde der Aufruf so aussehen  http://www.foo.com/~bar/

Apache Module mod_userdir:
http://httpd.apache.org/docs/2.0/mod/mod_userdir.html

HTH

Schmitti
 
 Da ich ja mehrere unterschiedliche Webseiten anzeigen lassen möchte,
 muss ich ja den Pfad angeben, sonst gelange ich auf die falsche Seite.
 
 Beste Gruesse
 
 Marcus
 
 
 
 --
 Apache HTTP Server Mailing List users-de 
   unsubscribe-Anfragen an [EMAIL PROTECTED]
sonstige Anfragen an [EMAIL PROTECTED]
 --
 

--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: Apachemeldung The requested URL /home/ameyer/public_html was not found on this server

2008-07-10 Thread Marcus Franke
 
 Ich möchte gerne mehrere Webseiten auf meinem Server ( Apache 2.2.9 )
 anzeigen lassen.
 
 VirtualHost habe ich wie folgt angegeben:
 
 Gebe ich aber im Browser die Adresse
 http://x.x.x.x/home/ameyer/public_html ein erscheint die Meldung: The
 requested URL /home/ameyer/public_html was not found on this server. Wie
 kommt das ?

Nun, dein DocumentRoot ist /home/ameyer/public_html/, wenn du also den
Pfad nochmal in der URL aufrufst, dann wird daraus im Dateisystem:
/home/ameyer/public_html/home/ameyer/public_html

Und die gibt es nunmal nicht. Ganz einfach :)

Warum nimmst du nicht einfach NameBased VHosts?

In der Hosts Datei dann z.B.:

127.0.0.1   www.dom1.local, www.dom2.local, www.dom3.local

Und die entsprechenden vhosts... 

Browser öffnen und fertig :)

Grüße,
Marcus

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Abfrage zur Kompilierung

2008-07-10 Thread Marcus Müller
Hallo zusammen,

ich suche einen Befehl unter Linux, der mir anzeigt, wie mein Apache
2.2.9 kompiliert worden ist. 

Ich habe schon das ganz Netz durchsucht und bin auf den Befehl apache -l
gestossen, jedoch funktioniert dieser nicht.

Gibt es da eine Möglichkeit ?

Beste Grüße


--
Apache HTTP Server Mailing List users-de
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



Re: Abfrage zur Kompilierung

2008-07-10 Thread Rainer Sokoll
On Thu, Jul 10, 2008 at 10:16:59PM +0200, Marcus Müller wrote:

 ich suche einen Befehl unter Linux, der mir anzeigt, wie mein Apache
 2.2.9 kompiliert worden ist. 

httpd -V
Oder, wenn Du die Optionen für configure wissen willst: config.log im
Source-Verzeichnis.

HTH,
Rainer

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



[EMAIL PROTECTED] Logging query strings from a re-write rule

2008-07-10 Thread Foster, Stephen (ASPIRE)
Hi,

 

I have implemented a re-write rule that captures the incoming requests,
checks for a cookie and then directs the user to another system to
authenticate and get a cookie before being allowed to access pages under
the webserver. E.g:

 

RewriteCond %{HTTP_HOST}   !=

RewriteCond %{REQUEST_URI}  !=/server-status

RewriteCond %{REQUEST_URI}  !=/server-status?auto

RewriteCond %{REQUEST_URI}  !=/heartbeat/heartbeat.htm

RewriteCond %{HTTP_COOKIE} !.*iiswlssignonuser*

RewriteRule .*$
http://www.steve.co.uk/Identification/WLSLogon.asp\?URL=http://%{HTTP_HO
ST}%{REQUEST_URI}path=%{REQUEST_URI}domain=.steve.co.ukname=mwar

e [L]

 

Functionaly this works perfectly but in the access logs I am getting the
Query string of the re-direct URL being shown against the initial
request. E.g

 I am accessing http://internal.steve.co.uk/TestWebApp/index.html

 

2008-07-10 10:53:02 10.101.X.X internal.steve.co.uk GET
/TestWebApp/index.html HTTP/1.1 302 367 2025
?URL=http://internal.steve.co.uk/TestWebApp/index.htmlpath=/TestWebApp/
index.htmldomain=.steve.co.ukname=mware Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; SV1; InfoPath.1) - -

2008-07-10 10:53:05 10.101.X.X internal.steve.co.uk GET
/TestWebApp/index.html HTTP/1.1 200 396 60460  Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1) - -

 

Any thoughts?? Like I say its working fine, just logging wrongly.

 

Cheers

 

Steve


Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini UK plc, a company registered in England and Wales (number 
943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB.
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.


Re: [EMAIL PROTECTED] help with apache2 and php3 support // mojo

2008-07-10 Thread Francois Gingras
Hello,

Please read the following article:

http://wiki.apache.org/httpd/13PermissionDenied

As for your second question, simply change your AddHandler line from

AddHandler application/x-httpd-php .php

to

AddHandler application/x-httpd-php .php .php3

in your configuration. Not that if you were using AddType before,
you'll need to change it to AddHandler. See:

http://www.devside.net/articles/php


On 7/10/08, Reveal MAP [EMAIL PROTECTED] wrote:

 hello!

 newbie at apache, lamp and generally linux stuff here.
 I have 2 problem:

 first one:
 .i would like to be able to run dialup_admin 2.0.5 on apache2.
 like indicated at:
 http://wiki.freeradius.org/Dialup_admin#Installing_.26_System_Configuration
 i did the following:
 ln -s /usr/share/dialup_admin /srv/www/htdocs/dialup

 but when i try to open it with firefox, all i obtain is that error message:

 ACCESS FORBIDEN:
 - You don't have permissionto access the requested object. It is either
 read protected or not readableby the server.
 - if you think that is a server error, please contactc your webmaster.
 - error 40.3.

 i tried chmod 777 -R /usr/share/dialup_adminwith no result (same issue)

 could someone help me to fix it, please?

 second one:
 .php files works fine, but i would like to be able to run .php3 extension
 files too. how could i do that!

 my config:
 -opensuse 10.3
 -apache version is 2.2.9
 -php5
 -mysql5
 my webroot is located at /etc/www/htdocs.

 Regards!


  
  Envoyé avec Yahoo! Mail.
 Une boite mail plus intelligente.


-- 
Francois Gingras
(i): http://ccds.ca
(p): (514) 243-8233
(f): (514) 731-5834

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Config error

2008-07-10 Thread Igor Galić




Hi
When am doing configure am getting these errors.
performing libtool configuration...
/home/kodiak/httpd-2.2.9/srclib/apr/configure: line 9945: syntax error near
unexpected token `lt_decl_varnames,'
/home/kodiak/httpd-2.2.9/srclib/apr/configure: line 9945:
`lt_if_append_uniq(lt_decl_varnames, SED, , ,'
configure failed for srclib/apr

What might be the problem? before configure i ran ./buildconf


If that is the case your autotools version might not be recent enough.
For instance, on Mac OS X you'd need at least libtool 1.4.2 (according to 
INSTALL).


So make sure your toolchain is recent enough and, supported (egrep, sed, 
etc..)



Thanks in advance


--
VIJAY


So long,
Igor

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Logging query strings from a re-write rule

2008-07-10 Thread Francois Gingras
Steve,

Without digging too much in your particular issue, note that
RewriteCond will only match the query string if you use
%{QUERY_STRING}; You can check the following guide for examples:

http://wiki.apache.org/httpd/RewriteQueryString

Frank

On 7/10/08, Foster, Stephen (ASPIRE) [EMAIL PROTECTED] wrote:




 Hi,



 I have implemented a re-write rule that captures the incoming requests,
 checks for a cookie and then directs the user to another system to
 authenticate and get a cookie before being allowed to access pages under the
 webserver. E.g:



 RewriteCond %{HTTP_HOST}   !=

 RewriteCond %{REQUEST_URI}  !=/server-status

 RewriteCond %{REQUEST_URI}  !=/server-status?auto

 RewriteCond %{REQUEST_URI}  !=/heartbeat/heartbeat.htm

 RewriteCond %{HTTP_COOKIE} !.*iiswlssignonuser*

 RewriteRule .*$
 http://www.steve.co.uk/Identification/WLSLogon.asp\?URL=http://%{HTTP_HOST}%{REQUEST_URI}path=%{REQUEST_URI}domain=.steve.co.ukname=mwar

 e [L]



 Functionaly this works perfectly but in the access logs I am getting the
 Query string of the re-direct URL being shown against the initial request.
 E.g

  I am accessing
 http://internal.steve.co.uk/TestWebApp/index.html



 2008-07-10 10:53:02 10.101.X.X internal.steve.co.uk GET
 /TestWebApp/index.html HTTP/1.1 302 367 2025
 ?URL=http://internal.steve.co.uk/TestWebApp/index.htmlpath=/TestWebApp/index.htmldomain=.steve.co.ukname=mware
 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1) - -

 2008-07-10 10:53:05 10.101.X.X internal.steve.co.uk GET
 /TestWebApp/index.html HTTP/1.1 200 396 60460  Mozilla/4.0 (compatible; MSIE
 6.0; Windows NT 5.1; SV1; InfoPath.1) - -



 Any thoughts?? Like I say its working fine, just logging wrongly.



 Cheers



 Steve

 Capgemini is a trading name used by the Capgemini Group of companies which
 includes Capgemini UK plc, a company registered in England and Wales (number
 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21
 6DB.

 This message contains information that may be privileged or confidential and
 is the property of the Capgemini Group. It is intended only for the person
 to whom it is addressed. If you are not the intended recipient, you are not
 authorized to read, print, retain, copy, disseminate, distribute, or use
 this message or any part thereof. If you receive this message in error,
 please notify the sender immediately and delete all copies of this message.


-- 
Francois Gingras
(i): http://ccds.ca
(p): (514) 243-8233
(f): (514) 731-5834

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] MOD_PROXY a strange problem!!!

2008-07-10 Thread Anand Kulkarni
Hi,
 
I have a TCP client-server application written in Java using the
standard socket APIs.
 
Now, I want to introduce Apache as the proxy server between them. And
hence I am using the mod_proxy module.
 
The communication among client, apache and server is properly being
established but facing a strange problem. 
 
Here the client wants to send many requests, so I am writing the code
as:
 
CLIENT:
 
/** 1st Request [START] **/
contentLength = 6.
out.writeBytes(A);
out.writeBytes(B);
out.writeBytes(C);
out.flush();
/** 1st Request [END] **/
 
/** 2nd Request [START] **/
contentLength = 6.
out.writeBytes(P);
out.writeBytes(Q);
out.writeBytes(R);
out.flush();
/** 2nd Request [END] **/
 
/** 3rd Request [START] **/
contentLength = 6.
out.writeBytes(X);
out.writeBytes(Y);
out.writeBytes(Z);
out.flush();
/** 3rd Request [END] **/
 
out.close();
 
 
The request properly goes to Apache without any exception on client
side. 
But the server receives very data only for 2 requests:
 
SERVER:
 
POST / HTTP/1.1
Host: 192.168.56.17:9801
X-Forwarded-For: 192.168.56.17
X-Forwarded-Server:  http://www.pavan.com www.pavan.com
Connection: Keep-Alive
Content-Length: 6
 
ABC
PQR
 
This is because of content length is 6. If I increase it to 9 then it
works perfectly.
 
See here every request is sending its content length. But apache
considers all 3 requests as the part of single request.
 
How to convince Apache that the client wants to make 3 separate
requests?
 
Waitng for the reply.
regards,
 
Anand
 
 


Re: [EMAIL PROTECTED] help with apache2 and php3 support // mojo

2008-07-10 Thread Igor Galić



but when i try to open it with firefox, all i obtain is that error message:


It is usually quite irelevant what User Agent says, for you as admin, the 
source of information is the error log:


http://wiki.apache.org/httpd/DistrosDefaultLayout shows where main distros 
place Apache files.


ACCESS FORBIDEN:
   - You don't have permissionto access the requested object. It is either read 
protected or not readableby the server.
   - if you think that is a server error, please contactc your webmaster.
   - error 40.3.


There are (generally) two reasons for 403s:
http://wiki.apache.org/httpd//13PermissionDenied
http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
(I'm suspecting the latter)


i tried chmod 777 -R /usr/share/dialup_adminwith no result (same issue)


777 is NEVER an apropriate way of dealing with ANY kind of permission 
problems.



.php files works fine, but i would like to be able to run .php3 extension files 
too. how could i do that!


Search for the line that configures PHP to be run by Apache, it *should* 
be something like:


AddHandler application/x-httpd-php .php .phtml

[But more likely it's some gross hack as described in 
http://www.devside.net/articles/php]


Add any extensions you desire to be handled by the PHP interpreter.


Regards!


So long,
Igor

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Hosting Scenario

2008-07-10 Thread S. Ural
There are 2 domains, example.com and example.net seeing the same document
root and thus having the same content.

I want both them get indexed in search engines as separate domains.

 

1-  Do I need to create these 2 domains under Apache separately?

2-  Or aliasing one to another can do the trick?

3-  Does aliasing  mean that only one is Ok to be defined in httpd.conf?
(Pooling the 2nd in DNS will do it work?)

 

 

Thank you



[EMAIL PROTECTED] how to: apache maintenence page

2008-07-10 Thread Mukarram Syed
Hi Apache gurus.
I am looking for a simple way to get a maintenance page up on RHEL4AS running 
httpd version 2.0.52.
the maintenance page should come up when the site is down...or if there is a 
maintenence going on...like uploads and such.
I have looked around found .htaccess, or the Rewrite way...but can someone 
explain me how to do this.  There is too much information scattered around 
about this and I am looking for a clear answer...step by step directions.  The 
O'Reilly Apache Cookbook that I have does not give me the answer as well.
Thanks much in advance.

Regards.

# mukarram


 Mukarram Syed
[EMAIL PROTECTED]



  

Re: [EMAIL PROTECTED] how to: apache maintenence page

2008-07-10 Thread Igor Galić

Hi Apache gurus.
I am looking for a simple way to get a maintenance page up on RHEL4AS running 
httpd version 2.0.52.
the maintenance page should come up when the site is down...or if there is a 
maintenence going on...like uploads and such.
I have looked around found .htaccess, or the Rewrite way...but can someone 
explain me how to do this.  There is too much information scattered around 
about this and I am looking for a clear answer...step by step directions.  The 
O'Reilly Apache Cookbook that I have does not give me the answer as well.
Thanks much in advance.


The easiest way, when running in rev-proxy mode at least (as in
http://wiki.apache.org/httpd/DifferentUserIDsUsingReverseProxy) would be 
to set ErrorDocument for the 5xx class errors to something appropriate.


Otherwise you could have something along the lines of:

RewriteCond -f /path/to/file/that/gets/touched/on/maintenance/rm/afterwards
RewriteRule ^ http://example.com/maintenance.html [R]

I'm not sure about the performance impact of the latter.



Regards.

# mukarram


So long,
Igor

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache/mod_jk serves random files from tomcat

2008-07-10 Thread Tim Redding

Hi,

We are experiencing intermittent problems with a particular site that is not
returning the correct file that is requested.  For instance if we request
the index.html file we actually get a css file or even an image.  From the
apache access log you can see that the size of the index.html file grows on
the second request. This is because a gif was actually returned.

XXX.XXX.XXX.130 - - [10/Jul/2008:15:10:39 +0100] GET /index.html HTTP/1.1
200 1068
XXX.XXX.XXX.130 - - [10/Jul/2008:15:13:10 +0100] GET /index.html HTTP/1.1
200 9526
XXX.XXX.XXX.130 - - [10/Jul/2008:15:13:48 +0100] GET /index.html HTTP/1.1
200 1086

No error messages are logged in the mode_jk.log file.

We have Apache/2.2.3 on the front on a Tomcat 6.0.16 server with mod_jk
(version unknown but fairly recent).  We have all assets in our war file. 
When we hit Tomcat directly on port 8080 it serves the correct file. And to
fix the problem an apache restart seems to sort things out.

On this server with have 2 vhosts.  One is a simple nothing fancy static
site and the other forwards everything to our Tomcat server.  Below I've
included our mod_jk config and a snippet of our httpd.conf.  

Any ideas or things to try would be most appreciated.


Tim.



= mod_jk.conf ==

# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel debug

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y]

# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat
JkRequestLogFormat %w %V %T

# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm

# original URL pass through
JkEnvVarORIGINAL_URIw00t

# Add jkstatus for managing runtime data
Location /jkstatus/
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
/Location


=== httpd.conf (our additions to the default file) ==

# mod_jk include
Include conf/mod_jk.conf

VirtualHost *:80
DocumentRoot /var/www/html/
ServerName example.co.uk
ErrorLog logs/default-error.log
CustomLog logs/default-access.log common
alias /logs /var/widgets
Location /logs
AuthUserFile /var/widgets/.htpasswd
AuthName Widgets
AuthType Basic
Require valid-user
/Location
 
Rewriteengine on
RewriteRule ^/$ /index.html [R]
jkmount /* loadbalancer
jkunmount /logs/*.gz loadbalancer
/VirtualHost

VirtualHost *:80
DocumentRoot /var/www/html/
ServerName widgets.example.co.uk
ErrorLog /var/widgets/widget-error.log
CustomLog /var/widgets/widgets-access.log common
jkunmount /* loadbalancer
/VirtualHost


=== worker.properties ==

worker.list=loadbalancer,status
worker.node1.port=8009
worker.node1.host=127.0.0.1
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1
worker.status.type=status

-- 
View this message in context: 
http://www.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385567p18385567.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Forward proxies and aliases

2008-07-10 Thread Tavian Barnes
 Tavian Barnes wrote:

 Just an idea from a guy who really knows next to nothing about proxies :
 If
 - a proxy configuration allows you to selectively forward some requests
 to a
 selection of sites, but not to a local file
 - but what you want to do is to redirect some URLs to a local file

 then can you not set up a local virtual host under some name, and forward
 ditto local requests to that local virtual host, whose pleasure it
 would
 be to serve the local stuff in question ?

 André


 The thing is, when the browser sends the request to the local virtual
 host, it's treating it like a proxy server.  So, the local host would
 have to be able to recognise a proxy request for a certain page, and
 return a local file instead, which is the same thing I'm trying to do
 now.

 It's probably me in this case, but I believe one of us is not understanding
 this right.

 At the browser level, you are requesting items from www.google.com, and the
 browser is configured to use serverA as a http proxy, right ?

Right.

 And what you want is that the proxy on serverA would get some stuff really
 from www.google.com, but some other stuff it should deliver from local files
 instead, still right ?

Right.

 But that is something you cannot configure easily, because there is no way
 in the proxy to tell it to forward some requests to a http server, but serve
 some other ones from local files.  Still right ?

As far as I can tell.

 So, what I mean is that on the same host hosting serverA, (which you use as
 a http proxy), you also configure a separate serverB (virtual), which can
 deliver some local files (if a suitable request URL requests them). (or
 you set up serverB on a totally separate local host, whatever).

 The browser requests are all directed to www.google.com, but still all
 requests go through serverA, because it is the configured http proxy.
 And serverA, by virtue of its proxy functionality would normally forward
 these requests to www.google.com (or serve them from its cache of
 www.google.com items).

 Now in serverA, you set up some early URL filter which will rewrite (modify)
 all requests which you do not really want to go to www.google.com, and
 substitute the appropriate URL so that this item will be instead proxied
 to serverB instead of www.google.com.
 (In other words e.g., in all requests ending in .gif, you change to
 hostname to serverB).
 So for some requests, www.google.com delivers the content, while from some
 others it will be serverB.  But all responses eventually go back through the
 serverA proxy, which delivers them to the browser.

Actually, it would be fine to just rewrite the url to a location on my
local web server.  I scratched my head figuring out how to do this,
until I noticed that my RewriteRule ^/ig wasn't matching, but .*ig.*
was.  I figured that the rewrite module must handle proxied urls
differently, so I wrote a script to use as a RewriteMap that simply
copied standard input to a file, and to standard output again.
Reading the file, it turns out (is this documented somewhere?) that
the url comes to the RewriteRule in the form of
proxy:http://www.google.com/ig; which I can now rewrite to
http://localhost/ig.  So, problem solved.

 I believe the browser wouldn't know the difference, because for him all
 requests are to www.google.com (while using the proxy serverA), and that's
 where it thinks it gets the responses from.  I don't think that the browser
 matches the responses back with its requests, to check inside if they
 really come from the same place.
 Because if it did, then the whole proxy mechanism wouldn't work in the first
 place.

When behind a proxy, the browser sends request to the proxy in the
form of GET http://www.google.com/ig, rather than sending GET /ig to
www.google.com.  It has no idea if the proxy server did some tricky
things behind its back.

 Or maybe I'm totally wrong with this, but it seems at least plausible, no ?

Your idea is more complicated than I needed, but I think it should work too.

Thanks Andre, and everyone else; I've got it working.

 André


 -
 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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Tavian Barnes

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Re: Using rewrite to forward the request OR mod_perl

2008-07-10 Thread Mohit Anchlia
If somebody can try and answer my questions posted below would really help
me. I have been reading about other ways of re-directing the traffic and I
found mod_perl module could also help in doing that. Since I have not done
this before advise beforehand would make things clear.

On 7/9/08, Mohit Anchlia [EMAIL PROTECTED] wrote:

 We have a web server that redirects traffic to app server using mod_jk load
 balancer.

 Now I need to do the following:

 1. If request comes from URL /AB and content of URL /AB has content in
 certain format then forward it to mod_jk otherwise forward it to some other
 URL (external system in our case).
 2. Make sure that when apache forwards the requests to external URL,
 session from client is still active.

 My obvious questions are:
 1. Can I do the above using rewrite rules?
 2. Can I use perl in rewrite rules to parse through the content and somehow
 tell apache to re-direct the request? What's the best way to do that? In
 terms of performance, efficiency etc.
 3. If rewrite forwards the request then does it still maintains the session
 from client - WebServer - External system?

 I need your advise.




[EMAIL PROTECTED] Mod_jk load balance logging

2008-07-10 Thread Campbell, Lance
I use mod_jk to load balance some java applications.  When I do a Unix
tail on the log that mod_jk generates I don't see anything that
indicates which instance of an application is being accessed:

 

Example:

 

[Thu Jul 10 12:29:36 2008] pc webtools.uiuc.edu 0.001352

[Thu Jul 10 12:29:36 2008] pc webtools.uiuc.edu 0.001251

 

Is there something I can do to display which instance of pc is being
accessed?  Ideally it would be nice to see if I am accessing server 1 or
server 2.

 

Thanks,

 

 

Lance Campbell

Project Manager/Software Architect

Web Services at Public Affairs

University of Illinois

217.333.0382

http://webservices.uiuc.edu

My e-mail address has changed to [EMAIL PROTECTED]

 



[EMAIL PROTECTED] problem with apache installation

2008-07-10 Thread Infocom Admin
Hi
 I am trying to upgrade apache to version 2.2.9 on Red Hat  
2.6.9-67.0.15.ELsmp. When I run the configure script with any option, it gives 
a warning as below.

configure: WARNING: Unrecognized options: --disable-actions, --disable-cgi

    Though it gives warnings, it compiles smoothly when i run make command.

    But again , when I run make install command, it quits saying:

Making install in support
make[1]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Leaving directory `/home/sam/httpd-2.2.9/support'
cp: preserving permissions for `/usr/local/apache2/modules/httpd.exp': 
Operation not supported
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/sam/httpd-2.2.9/support'
make: *** [install-recursive] Error 1

    Even though I remove the previous file httpd.exp and run the command 
again, it still says the same...

   Do you have any ideas about this issue ?

Thank you
  
    



  

[EMAIL PROTECTED] httpd folder is owned by root

2008-07-10 Thread VPN Cluster
After successful compilation of Apache 2.2.9 , Apache folder on
/usr/lcoal/httpd is owned by root:root.

It should be owned by apache:apache. How to go about fixing that..


Re: [EMAIL PROTECTED] httpd folder is owned by root

2008-07-10 Thread Frank Gingras

VPN Cluster wrote:

After successful compilation of Apache 2.2.9 , Apache folder on
/usr/lcoal/httpd is owned by root:root.

It should be owned by apache:apache. How to go about fixing that..

  

Hello,

The files under /usr/local/httpd *should* belong to root, actually.

You should never chown the files served by apache to the apache user. 
That is a tremendous security risk.


What problem are you trying to solve, exactly?

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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] httpd folder is owned by root

2008-07-10 Thread William A. Rowe, Jr.

VPN Cluster wrote:
After successful compilation of Apache 2.2.9 , Apache folder on 
/usr/lcoal/httpd is owned by root:root.


It should be owned by apache:apache. 


Never.  Absolutely not.  Anyone who compromises apache with an arbitrary
code execution exploit or uses any number of vulnerable scripts or even
untrusted content authors would be able to modify the installation of
Apache itself.

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] httpd folder is owned by root

2008-07-10 Thread VPN Cluster
I have several other servers that have apache and they all owned by
apache:apache . Even /usr/local/httpd/bin/apachectl is owned by apach:apache

This is the only machine where I compiled apache but I see all the tree of
folder and files under /usr/local/httpd is owned by root:root ..

On Thu, Jul 10, 2008 at 2:04 PM, Frank Gingras [EMAIL PROTECTED]
wrote:

 VPN Cluster wrote:

 After successful compilation of Apache 2.2.9 , Apache folder on
 /usr/lcoal/httpd is owned by root:root.

 It should be owned by apache:apache. How to go about fixing that..



 Hello,

 The files under /usr/local/httpd *should* belong to root, actually.

 You should never chown the files served by apache to the apache user. That
 is a tremendous security risk.

 What problem are you trying to solve, exactly?

 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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [EMAIL PROTECTED] httpd folder is owned by root

2008-07-10 Thread Frank Gingras

You need to fix those installations immediately, then. You can run:

chown -R root:root /usr/local/httpd


to fix it.

If you have any directories that require write access for your scripts, 
chmod those to 775, and chgrp to apache. Be aware that you should 
prevent script and unknown content from being uploaded there to minimize 
the security risk.


VPN Cluster wrote:

I have several other servers that have apache and they all owned by
apache:apache . Even /usr/local/httpd/bin/apachectl is owned by apach:apache

This is the only machine where I compiled apache but I see all the tree of
folder and files under /usr/local/httpd is owned by root:root ..

On Thu, Jul 10, 2008 at 2:04 PM, Frank Gingras [EMAIL PROTECTED]
wrote:

  

VPN Cluster wrote:



After successful compilation of Apache 2.2.9 , Apache folder on
/usr/lcoal/httpd is owned by root:root.

It should be owned by apache:apache. How to go about fixing that..



  

Hello,

The files under /usr/local/httpd *should* belong to root, actually.

You should never chown the files served by apache to the apache user. That
is a tremendous security risk.

What problem are you trying to solve, exactly?

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: [EMAIL PROTECTED]
from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] redirecting when behind a firewall

2008-07-10 Thread bruce
Hi..

Got a bit of an issue here, that I can't seem to resolve.

I have a test domain on a dynamic service (dyndns.org). the test domain is
foo.gotdns.com, which i have pointing to my external cable/dsl address.
Here's my issue, I would really like to be able to have the external user be
able to see multiple websites which might be sitting on different physical
machines/apache servers within my network.

Behind the modem, I have a firewall which is set up to port-forward the
traffic to a machine with my network. So, for my example, the machine is dog
(192.168.1.52), and the foo.gotdns.com would point to the app on the
machine, based on the vhost setup in the dog httpd.conf file.

However, I would also like to have multiple external test sites/domains,
each of which might point back to sites on different internal servers. The
forwarding capability of the router only allows for all wan * (addresses) to
be forwarded to a given internal machine. At the same time, the
external/internal ports have to match.

So i don't have the ability to do something like forward foo.gotdns.com to
machine1, and forward foo2.gotdns.com to machine2 which is exactly what i'm
trying to accomplish!!

I've been looking into using vhosts, and the redirect functionaility, but I
can't seem to get it to work, using the external domain name.

So. i'm trying to:
 -be able to access multiple test sites, on multiple servers
  from a browser external to my network
 -be able to access the same sites, from inside my network, using
  the local/internal namespace
 -be able to access the same sites, from inside my network, using
  the external namespace (testing purposes)

I've looked high/low for how to accomplish this with no real luck.

thanks

ps. I've seen others who've been looking for similar solutions, so this
would definitely help.

ps. I'm able to do a redirect from one server to another, if I restrict to
using internal addresses. Just can't get the external stuff to work..





-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] problem installing apache (resending)

2008-07-10 Thread Infocom Admin
Hi
 I am trying to upgrade apache to version 2.2.9 on Red Hat 
2.6.9-67.0.15.ELsmp. When I run the configure script with any option,
it gives a warning as below.

configure: WARNING: Unrecognized options: --disable-actions, --disable-cgi

    Though it gives warnings, it compiles smoothly when i run make command.

    But again , when I run make install command, it quits saying:

Making install in support
make[1]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Leaving directory `/home/sam/httpd-2.2.9/support'
cp: preserving permissions for `/usr/local/apache2/modules/httpd.exp': 
Operation not supported
make[1]: *** [install] Error 1
make[1]: Leaving directory
 `/home/sam/httpd-2.2.9/support'
make: *** [install-recursive] Error 1

    Even though I remove the previous file httpd.exp and run the command 
again, it still says the same...

   Do you have any ideas about this issue ?

Thank you

(posting again as previous one didn't appear in the list)
  


  

[EMAIL PROTECTED] Apache sends 401 Response with IE but works with Firefox

2008-07-10 Thread Question Mark
Hello,

I have an Apache 2.2 running on a Fedora Linux distribution.  It has worked
fine so far until I've recently deployed a simple Ruby-on-rails application
with Passenger module.  I created a VirtualHost (port based) for the Ruby
application.  I also do a simple authentication and redirection for
unauthenticated access in Ruby code.

*The problem:* I can access the links fine from Firefox.  Without being
authenticated, when I access a restricted page I get redirected to the login
page (as expected).  However, when I use Internet Explorer (tried both 6 and
7) I get a Basic Authentication pop-up.  And no matter what I enter for
username/password, I always get HTTP Basic: Access denied. error message.
I figured that the requests sent form Firefox and Internet Explorer differ
at the Accept: request header.

*Firefox sends*:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

*Internet Explorer sends:*
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword,
application/x-silverlight, application/x-ms-application,
application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
*/*

In addition, when I intercept the request with a proxy and change the Accept
header content to */* in IE, it works fine (no basic auth prompt).  This
leads me to believe that there's something fishy about Apache not liking the
long Accept header.  The total request header is about 1800 bytes so this
can not be related to header length restrictions.

I have a section that requires basic authentication but even if I disable it
(comment it out entirely and restart the server) I still get the same
result, so I guess it doesn't have anything to do with it.

Here's the *VirtualHost configuration* of the httpd.conf file:
VirtualHost *:8080
   DocumentRoot /opt/abc/public/
   ErrorLog /opt/abc/log/apache_error.log
   CustomLog /opt/abc/log/apache_access.log common
   Directory /opt/abc/public
 AllowOverride None
 Options Indexes FollowSymLinks
 Satisfy All
 Allow from all
   /Directory
/VirtualHost


I am lost and confused at the moment.  Any ideas or assistance is greatly
appreciated.

Thanks
QM


Re: [EMAIL PROTECTED] Hosting Scenario

2008-07-10 Thread solprovider
On 7/10/08, S. Ural [EMAIL PROTECTED] wrote:
 There are 2 domains, example.com and example.net seeing the same document
 root and thus having the same content.
 I want both them get indexed in search engines as separate domains.
 1-  Do I need to create these 2 domains under Apache separately?
 2-  Or aliasing one to another can do the trick?
 3-  Does aliasing  mean that only one is Ok to be defined in httpd.conf?
 (Pooling the 2nd in DNS will do it work?)
 Thank you

First, domains do not affect Apache httpd.  DNS and Apache httpd can
be completely separate.  DNS defines IP Addresses for server names
within a domain.  Possible server names include the no-name
(example.com), defined names (www.example.com and
mail.example.com) and the wildcard (*.example.com) receiving
requests for undefined names.  The Internet sends requests for a named
server to the specified IP Address.  Then the server decides how to
respond.  (Research ports and protocols for information about
multiple software servers on the same hardware.)

The challenge has always been how to serve different content based on
the server names.  Apache httpd provides this functionality with
virtual servers.

With no virtual servers, every request to Apache httpd server is
handled alike.  If DNS points multiple server names to the IP Address,
the same content will be served for each of the server names.

The same results happen with virtual servers if the domains are not
defined -- both use the default (first) virtual server and serve the
same content.

The same results happen if multiple server names are aliased in the
virtual server configuration.  The configuration is used for the
specified server names leading to the same content.

The same results happen with virtual servers if the domains use the
same content directory.  The process uses separate configuration
settings to reach the same content.

Unless different virtual servers are configured to use separate
content directories, the same content will be served.  (Rewrite rules
can also serve different content for different server names, but why
bother when virtual servers exist?)
--
Using multiple domains to boost hits is counter-productive.  Traffic
will be split amongst the multiple domains lowering the score for all
the domains.  Better choose a primary domain and use the extra domains
as shortcuts to specific information.  Example:
  http://fgulen.com
can permanently redirect to:
  http://example.com/companies/fgulen/products.html
You can market the short URL while search engines push traffic to the
primary website.

solprovider

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] problem installing apache (resending)

2008-07-10 Thread Tom Donovan

Infocom Admin wrote:

Hi
 I am trying to upgrade apache to version 2.2.9 on Red Hat  
2.6.9-67.0.15.ELsmp. When I run the configure script with any option, it 
gives a warning as below.


configure: WARNING: Unrecognized options: --disable-actions, --disable-cgi

Though it gives warnings, it compiles smoothly when i run make 
command.




This one is benign.  Apache passes all your options to the apr, apr-util, and 
httpd configures.

Prior to autoconf 2.62 any unrecognized options were silently ignored, and Apache counted on this 
behavior.  Starting with 2.62 each configure complains about the options it doesn't understand.


See http://www.gnu.org/software/autoconf/manual/html_node/Option-Checking.html
and https://issues.apache.org/bugzilla/show_bug.cgi?id=45221

You can quiet these messages with the --disable-option-checking switch.


But again , when I run make install command, it quits saying:

Making install in support
make[1]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Entering directory `/home/sam/httpd-2.2.9/support'
make[2]: Leaving directory `/home/sam/httpd-2.2.9/support'
cp: preserving permissions for `/usr/local/apache2/modules/httpd.exp': 
Operation not supported

make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/sam/httpd-2.2.9/support'
make: *** [install-recursive] Error 1

Even though I remove the previous file httpd.exp and run the 
command again, it still says the same...


   Do you have any ideas about this issue ?



Definitely a separate issue.   Do you have r+w access to /usr/local/... ?

-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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] How to customize Apache Headers?

2008-07-10 Thread Anand Kulkarni
Hi,
 
I am sending many requests from TCP client to Apache. Using mod_proxy it
will be routed to the destinition server.
 
In every client request, I want to send different HTTP headers but I
found that Apache adds its own headers and does not allow client to set
request specific headers.
 
So, my question is How to customize Apache Headers from the client side?
 
regards,
 
Anand