Re: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread J. Greenlees
Justin Zhang wrote:
> Is my cofiguration right?
> 
> Listen 192.168.0.100:80
> ServerName 24.78.136.243:80
> 

Listen *:8080
ServerName 24.78.136.243

Though the default for the ServerName directive, of not specifying or
using it, works better for an apache installation with a dhcp driven ip
address. Shaw uses DHCP for ip addresses unless you buy a business
account, which really is an expensive, limited account.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Configuration of Tomcat 5.5 and Apache 2.2

2009-05-14 Thread Hracek, Petr
Sorry for mistification correct version which have been already were taken from 
jakarta-tomcat package

When the tomcat is running and tomcat home page is 
/srv/www/tomcat55/base/webapps where should be applications passed
How can I tell to tomcat that my application http://localhost:8080/PM/servlet 
is in directory /opt/pm/servlets
What syntax should be for tomcat and for apache configuration file.
What about JkMount in apache 2.2
My configuration settings in apache 2.2 are:

JkMount /PM/servlet/* ajp13


And what about tomcat configuration?

regards / S pozdravem
Petr Hráček

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Monday, May 11, 2009 4:06 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Configuration of Tomcat 5.5 and Apache 2.2

Hracek, Petr wrote:
> Hello all,
>  
> In my system I would like to enable servlets on my system but
> unfortunatelly
> I found two ways of these functionality.
>  
> First case::
> mod_proxy_ajp
> Second case:
> mod_jk connector.
>  
> For first case I have question if the servlets are stored in
> /opt/pm/servlet directory
> what is correct syntax used in configuration file of apache 2.2?
> How it should look like ProxyPass and ProxyPassReverse?
>  
> I have been using mod_jk (Version 3.2.1) with apache 1.3
> There were several directives as JkMount, JkWorkersFileJkLogLevel.
> Are these directives working for the latest mod_jk connector as well?
>
I don't think that there was ever a mod_jk version 3.2.1.  Where did you 
get that version number from ? The current version is 1.2.28.

Start by having a look at the on-line documentation :
http://tomcat.apache.org/connectors-doc/

Apache (httpd) does not run servlets.  Tomcat does. Where the servlets 
are stored on disk and what they do and how they do it, is not a concern 
of Apache, but of Tomcat.
So, in any case, the first step would be to set up Tomcat, then check if 
your servlets work properly when accessing Tomcat directly from the 
browser (presumably on port 8080 or so).
(Make a note of the URLs you use to access the servlets, but that is 
something you will need, to configure the connector.)

When that is working, then you can start thinking about how to go 
through Apache, and an Apache/Tomcat connector, to access those same 
servlets.  You will have to choose a connector.  If you have used mod_jk 
before, then I would recommend to stick with it, there will be less 
surprises.
Basically the configuration is identical for Apache 2.2.x as it was for 
1.3.x.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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 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



[us...@httpd] rewrite and/or proxy question

2009-05-14 Thread André Warnier

Hi.

I have an Apache 2.2 webserver set up with VHosts, one of them having a
DocumentRoot structured as follows :

DocumentRoot /var/www/company.com/docs

disk :
/var/www/company.com/docs
   /app1
   /app2
   /app3

These different areas /app1, /app2, /app3 have different AAA criteria.

There are on the other hand 3 DNS aliases resolving to the IP of this
Apache host :
app1.company.com
app2.company.com
app3.company.com

The above VirtualHost section is defined as follows :

  ServerName app1.company.com
  ServerAlias app2.company.com
  ServerAlias app3.company.com
  DocumentRoot /var/www/company.com/docs
 ...



I would like, through a combination of (possibly) mod_rewrite and/or
mod_proxy rules, to obtain the following behaviour :

- if a user requests the URL
http://app1.company.com
they should get the content of the directory /var/www/company.com/docs/app1
- if a user requests the URL
http://app1.company.com/xyz
they should get the content of the directory .../app1/xyz
- if a user requests a URL like
http://app1.company.com/app1/*
they should also get the same content of /app1 (and not of /app1/app1/*)
- if a user requests the URL
http://app2.company.com
they should get the content of the directory .../app2
- if a user requests the URL
http://app2.company.com/xyz
they should get the content of the directory .../app2/xyz
- if a user requests a URL like
http://app2.company.com/app2/*
they should also get the same content of /app2 (and not of /app2/app2/)
etc...
- and, maybe more tricky, if a user requests something like
http://app1.company.com/app2/*
(thus trying to be "smart" and bypass the AAA rules)
they should get a "not found" or a "forbidden"

Does anyone have an idea of how to achieve this smartly, efficiently,
and without getting into horrible inconsistencies and/or loops ?





-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] rewrite and/or proxy question

2009-05-14 Thread André Warnier

Complement added at end.

André Warnier wrote:

Hi.

I have an Apache 2.2 webserver set up with VHosts, one of them having a
DocumentRoot structured as follows :

DocumentRoot /var/www/company.com/docs

disk :
/var/www/company.com/docs
   /app1
   /app2
   /app3

These different areas /app1, /app2, /app3 have different AAA criteria.

There are on the other hand 3 DNS aliases resolving to the IP of this
Apache host :
app1.company.com
app2.company.com
app3.company.com

The above VirtualHost section is defined as follows :

  ServerName app1.company.com
  ServerAlias app2.company.com
  ServerAlias app3.company.com
  DocumentRoot /var/www/company.com/docs
 ...



I would like, through a combination of (possibly) mod_rewrite and/or
mod_proxy rules, to obtain the following behaviour :

- if a user requests the URL
http://app1.company.com
they should get the content of the directory /var/www/company.com/docs/app1
- if a user requests the URL
http://app1.company.com/xyz
they should get the content of the directory .../app1/xyz
- if a user requests a URL like
http://app1.company.com/app1/*
they should also get the same content of /app1 (and not of /app1/app1/*)
- if a user requests the URL
http://app2.company.com
they should get the content of the directory .../app2
- if a user requests the URL
http://app2.company.com/xyz
they should get the content of the directory .../app2/xyz
- if a user requests a URL like
http://app2.company.com/app2/*
they should also get the same content of /app2 (and not of /app2/app2/)
etc...
- and, maybe more tricky, if a user requests something like
http://app1.company.com/app2/*
(thus trying to be "smart" and bypass the AAA rules)
they should get a "not found" or a "forbidden"

Does anyone have an idea of how to achieve this smartly, efficiently,
and without getting into horrible inconsistencies and/or loops ?




For example, would the following work, or am I forgetting something, 
doing something bad, risk security bypasses, etc.. ?


RewriteCond %{HTTP_HOST} app1.company.com
RewriteRule ^/$ /app1/ [L]
RewriteRule ^/app1/.+$ - [L]
RewriteRule ^/app2/.+$ - [F]
RewriteRule ^/app3/.+$ - [F]
RewriteRule ^/(.+)$ /app1/$1 [L]

RewriteCond %{HTTP_HOST} app2.company.com
RewriteRule ^/$ /app2/ [L]
RewriteRule ^/app2/.+$ - [L]
RewriteRule ^/app1/.+$ - [F]
RewriteRule ^/app3/.+$ - [F]
RewriteRule ^/(.+)$ /app2/$1 [L]

RewriteCond %{HTTP_HOST} app3.company.com
RewriteRule ^/$ /app3/ [L]
RewriteRule ^/app3/.+$ - [L]
RewriteRule ^/app1/.+$ - [F]
RewriteRule ^/app2/.+$ - [F]
RewriteRule ^/(.+)$ /app3/$1 [L]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] rewrite and/or proxy question

2009-05-14 Thread Eric Covener
On Thu, May 14, 2009 at 6:57 AM, André Warnier  wrote:

> For example, would the following work, or am I forgetting something, doing
> something bad, risk security bypasses, etc.. ?
>
> RewriteCond %{HTTP_HOST} app3.company.com
> RewriteRule ^/$ /app3/ [L]
> RewriteRule ^/app3/.+$ - [L]
> RewriteRule ^/app1/.+$ - [F]
> RewriteRule ^/app2/.+$ - [F]
> RewriteRule ^/(.+)$ /app3/$1 [L]
>


Your conditions only apply to the immediately following rule, but it
seems like your intent is to have them applied to all of them.

You might simplify by capturing the "app3" on the HTTP_HOST and using
it on the subsequent conditions/rules for ease of maintainability.




-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



[us...@httpd] P3P policy for each virtual host

2009-05-14 Thread Paras Fadte
Hi,

Is it possible to set different P3P policy for each of the virtual
hosts defined in Apache ?

Thank you.

-Paras

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] rewrite and/or proxy question

2009-05-14 Thread André Warnier

Eric Covener wrote:

On Thu, May 14, 2009 at 6:57 AM, André Warnier  wrote:


For example, would the following work, or am I forgetting something, doing
something bad, risk security bypasses, etc.. ?

RewriteCond %{HTTP_HOST} app3.company.com
RewriteRule ^/$ /app3/ [L]
RewriteCond %{HTTP_HOST} app3.company.com
RewriteRule ^/app3/.+$ - [L]
RewriteCond %{HTTP_HOST} app3.company.com
#RewriteRule ^/app1/.+$ - [F]
#RewriteRule ^/app2/.+$ - [F]

   RewriteRule ^/(app1|app2)/ - [F]

RewriteRule ^/(.+)$ /app3/$1 [L]




Your conditions only apply to the immediately following rule, but it
seems like your intent is to have them applied to all of them.
Yes it is my intention to apply each RewriteCond to the 5 following 
RewriteRule lines. I gather that doesn't work ?
Do I have to repeat that RewriteCond once per RewriteRule then (as now 
modified above), or is there a smarter way of doing that ?




You might simplify by capturing the "app3" on the HTTP_HOST and using
it on the subsequent conditions/rules for ease of maintainability.

I think that my less-regexp-inclined colleagues would consider that more 
as gratuitious show-off obfuscation on my part however.

;-)
Or do you mean something like :

 # catch all 3 at once

 RewriteCond %{HTTP_HOST} ^(app1|app2|app3).company.com$
 RewriteRule ^/$ /%1/ [L]

 RewriteCond %{HTTP_HOST} ^(app1|app2|app3).company.com$
 RewriteRule ^/%1/.+$ - [L]

...

 RewriteCond %{HTTP_HOST} ^(app1|app2|app3).company.com$
 RewriteRule ^/(.+)$ /%1/$1 [L]

I don't know how to manage the "forbidden" ones that way though.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] P3P policy for each virtual host

2009-05-14 Thread Tom Evans
On Thu, 2009-05-14 at 16:58 +0530, Paras Fadte wrote:
> Hi,
> 
> Is it possible to set different P3P policy for each of the virtual
> hosts defined in Apache ?
> 
> Thank you.
> 
> -Paras
> 

Yes.

P3P is set either by including the info in an abbreviated form in a
header, or by including a header indicating where the policy file is
located, or by accessing the policy file in the ''well known location''
'/w3c/p3p.xml'.

You can control headers using mod_headers, and you can control what
content is available in what locations in a variety of means, so there
are a variety of choices.


Tom 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Richard Peacock
Hello



It's still not working:



"The server at 24.78.136.243 is taking too long to respond."



That's from http://24.78.136.243:8080/

If it works from your internal network (ie http://192.168.0.100:8080 
 ) then it's a port-forwarding or firewall issue. 
Perhaps check the local webserver's firewall logs or temporarily disable it?

Good luck!







From: Justin Zhang [mailto:justinzhang1...@gmail.com]
Sent: 13 May 2009 19:53
To: users@httpd.apache.org; a...@ice-sa.com
Subject: Re: [us...@httpd] Fwd: Home Web Server



Current router configuration

Virtual Server HTTP

192.168.0.100

TCP 8080/8080

Always

Private port and public port are all 8080. Before it is 80/80 for port 80





On Wed, May 13, 2009 at 11:46 AM, André Warnier  wrote:

Justin Zhang wrote:

http://192.168.0.100:8080   is working for me now. 
Could you help try my
external IP

*24.78.136.243*
Thanks,



Doesn't work : connection refused.

I believe now is time for a pause to think.

When we connect from outside to the address 24.78.136.243, we in fact connect 
to your *router*.
Your router is not your webserver.
Your router should know, that when it receives a connection to its port 80 (or 
8080), it should forward this connection to your Apache server, at the IP 
address 192.168.0.100.
Is there something in your router configuration that tells it to do that ?




-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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






**
Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such
person), you must not copy, distribute or take any action in
reliance to it.
In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately
if you or your employer do not consent to Internet email for
messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of Minorplanet Systems plc shall be understood as
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 
3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
**
 

Re: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Justin Zhang
Now only local address is working http://192.168.0.100:8080/

Besides myIPaddress, is there any other way to check my external IP address.
Since I got different IPs with and without Phone adapter. 24.78.136.243  is
with phone adapter, and the other one is 24.78.147.173. I donot know which
one is right or both are not right.


Thanks, Justin


On Thu, May 14, 2009 at 8:45 AM, Richard Peacock <
richard.peac...@minorplanet.com> wrote:

>   Hello
>
>
>
> It’s still not working:
>
>
>
> “The server at 24.78.136.243 is taking too long to respond.”
>
>
>
> That’s from http://24.78.136.243:8080/
>
> If it works from your internal network (ie http://192.168.0.100:8080) then
> it’s a port-forwarding or firewall issue. Perhaps check the local
> webserver’s firewall logs or temporarily disable it?
>
> Good luck!
>
>
>
>
>  --
>
> *From:* Justin Zhang [mailto:justinzhang1...@gmail.com]
> *Sent:* 13 May 2009 19:53
> *To:* users@httpd.apache.org; a...@ice-sa.com
> *Subject:* Re: [us...@httpd] Fwd: Home Web Server
>
>
>
> Current router configuration
>
> Virtual Server HTTP
>
> 192.168.0.100
>
> TCP 8080/8080
>
> Always
>
> Private port and public port are all 8080. Before it is 80/80 for port 80
>
>
>
>
>
> On Wed, May 13, 2009 at 11:46 AM, André Warnier  wrote:
>
> Justin Zhang wrote:
>
> http://192.168.0.100:8080 is working for me now. Could you help try my
> external IP
>
> *24.78.136.243*
> Thanks,
>
>
>
> Doesn't work : connection refused.
>
> I believe now is time for a pause to think.
>
> When we connect from outside to the address 24.78.136.243, we in fact
> connect to your *router*.
> Your router is not your webserver.
> Your router should know, that when it receives a connection to its port 80
> (or 8080), it should forward this connection to your Apache server, at the
> IP address 192.168.0.100.
> Is there something in your router configuration that tells it to do that ?
>
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 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
>
>
>
>
> **
> Privileged/Confidential Information may be contained in this
> message. If you are not the addressee indicated in this
> message (or responsible for delivery of the message to such
> person), you must not copy, distribute or take any action in
> reliance to it.
> In such case, you should destroy this message and kindly
> notify the sender by reply email. Please advise immediately
> if you or your employer do not consent to Internet email for
> messages of this kind. Opinions, conclusions and other
> information in this message that do not relate to the official
> business of Minorplanet Systems plc shall be understood as
> neither given nor endorsed by it.
> Minorplanet Systems plc, Registration no: 3372097
> Minorplanet Limited, Registration no: 4072786
> Greenwich House, 223 North Street, Leeds, LS7 2AA
> VAT #: 698 1438 86
> **
>
>
>


Re: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread André Warnier

Justin Zhang wrote:

Now only local address is working http://192.168.0.100:8080/

Besides myIPaddress, is there any other way to check my external IP address.
Since I got different IPs with and without Phone adapter. 24.78.136.243  is
with phone adapter, and the other one is 24.78.147.173. I donot know which
one is right or both are not right.

Well, we do not know either.  To me that setup is a bit mysterious, but 
that may be because I'm in Europe as opposed to Canada.

Can you try to draw some kind of picture of what is connected to what ?


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Richard Peacock
www.whatismyipaddress.com

Your router should also show the external/public IP but on my Smoothwall it 
gives me a different one to what it really is lol so use that website above!

Rich



-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: 14 May 2009 16:57
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Fwd: Home Web Server

Justin Zhang wrote:
> Now only local address is working http://192.168.0.100:8080/
>
> Besides myIPaddress, is there any other way to check my external IP address.
> Since I got different IPs with and without Phone adapter. 24.78.136.243  is
> with phone adapter, and the other one is 24.78.147.173. I donot know which
> one is right or both are not right.
>
Well, we do not know either.  To me that setup is a bit mysterious, but
that may be because I'm in Europe as opposed to Canada.
Can you try to draw some kind of picture of what is connected to what ?


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



**
Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such
person), you must not copy, distribute or take any action in
reliance to it.
In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately
if you or your employer do not consent to Internet email for
messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of Minorplanet Systems plc shall be understood as
neither given nor endorsed by it. Minorplanet Systems plc, Registration no: 
3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
**


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Justin Zhang
You can see the diagram in the link
http://en.wikipedia.org/wiki/File:Voip-typical.gif
Thanks

On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:

> Justin Zhang wrote:
>
>> Now only local address is working http://192.168.0.100:8080/
>>
>> Besides myIPaddress, is there any other way to check my external IP
>> address.
>> Since I got different IPs with and without Phone adapter. 24.78.136.243
>>  is
>> with phone adapter, and the other one is 24.78.147.173. I donot know which
>> one is right or both are not right.
>>
>> Well, we do not know either.  To me that setup is a bit mysterious, but
> that may be because I'm in Europe as opposed to Canada.
> Can you try to draw some kind of picture of what is connected to what ?
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 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
>
>


[us...@httpd] Shared DavLockDB between servers?

2009-05-14 Thread Brian McElroy
Is it possible to share the DavLockDB between more than one apache  
server?  I'd like to use two apache servers for webdav and load  
balance between them, but I also need consistent file locking between  
them.


Each one mounts the web root over NFS.  I've tried pointing the  
DavLockDB to a shared location on the nfs share, but our developers  
are still able to check out files in Dreamweaver that are already  
locked if they don't hit the same server the file was originally  
checked out on.


Brian
 
 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread André Warnier

Ok, seen.

Is that *exactly* your setup ?
(if not, tell us what is different compared to the picture)

Also, when you talk below of "with and without Phone adapter", what do 
you mean exactly ? are you switching the cables around, turning 
something on or off, or what ?


Also, when you talk about "router", which box do you mean ?




Justin Zhang wrote:

You can see the diagram in the link
http://en.wikipedia.org/wiki/File:Voip-typical.gif
Thanks

On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:


Justin Zhang wrote:


Now only local address is working http://192.168.0.100:8080/

Besides myIPaddress, is there any other way to check my external IP
address.
Since I got different IPs with and without Phone adapter. 24.78.136.243
 is
with phone adapter, and the other one is 24.78.147.173. I donot know which
one is right or both are not right.

Well, we do not know either.  To me that setup is a bit mysterious, but

that may be because I'm in Europe as opposed to Canada.
Can you try to draw some kind of picture of what is connected to what ?



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Justin Zhang
My setup is exactly the same as the link picture.

I try connect routher via phone adapter and bypass phone adapter (direcly to
DSL modem, i.e. taking phone adapter off) I got two different IPs from
myIPaddress.com. My routher is D-Link DI-524 wireless router

Thanks

On Thu, May 14, 2009 at 9:24 AM, André Warnier  wrote:

> Ok, seen.
>
> Is that *exactly* your setup ?
> (if not, tell us what is different compared to the picture)
>
> Also, when you talk below of "with and without Phone adapter", what do you
> mean exactly ? are you switching the cables around, turning something on or
> off, or what ?
>
> Also, when you talk about "router", which box do you mean ?
>
>
>
>
>
> Justin Zhang wrote:
>
>> You can see the diagram in the link
>> http://en.wikipedia.org/wiki/File:Voip-typical.gif
>> Thanks
>>
>> On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:
>>
>> Justin Zhang wrote:
>>>
>>> Now only local address is working http://192.168.0.100:8080/

 Besides myIPaddress, is there any other way to check my external IP
 address.
 Since I got different IPs with and without Phone adapter. 24.78.136.243
  is
 with phone adapter, and the other one is 24.78.147.173. I donot know
 which
 one is right or both are not right.

 Well, we do not know either.  To me that setup is a bit mysterious, but

>>> that may be because I'm in Europe as opposed to Canada.
>>> Can you try to draw some kind of picture of what is connected to what ?
>>>
>>>
>>>
>>> -
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See 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 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread André Warnier

Justin Zhang wrote:

My setup is exactly the same as the link picture.

I try connect routher via phone adapter and bypass phone adapter (direcly to
DSL modem, i.e. taking phone adapter off) I got two different IPs from
myIPaddress.com. My routher is D-Link DI-524 wireless router



Allright.
I refer to this page :
http://support.dlink.com/emulators/di524/st_devic.html

- Connect your router directly to the DSL modem, and disconnect the 
Phone adapter.


- in your router configuration :
  - in the "Firewall" part,
   - click "enabled"
   - Name : HTTP server
   - Source/Interface : WAN
   - Source/IP Ranges start/stop : empty (*)
   - Destination/Interface : LAN
   - Destination/IP Range start/stop : both 192.168.0.100
   - Destination/Protocol : TCP
   - Destination/Port Range : 8080 and 8080
  then click "Apply".

In your router config, go to Home, then Status, then look at WAN / IP 
address, and tell us that address.


(*) we try first that, and if it does not work, we will try something else.





Thanks

On Thu, May 14, 2009 at 9:24 AM, André Warnier  wrote:


Ok, seen.

Is that *exactly* your setup ?
(if not, tell us what is different compared to the picture)

Also, when you talk below of "with and without Phone adapter", what do you
mean exactly ? are you switching the cables around, turning something on or
off, or what ?

Also, when you talk about "router", which box do you mean ?





Justin Zhang wrote:


You can see the diagram in the link
http://en.wikipedia.org/wiki/File:Voip-typical.gif
Thanks

On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:

Justin Zhang wrote:

Now only local address is working http://192.168.0.100:8080/

Besides myIPaddress, is there any other way to check my external IP
address.
Since I got different IPs with and without Phone adapter. 24.78.136.243
 is
with phone adapter, and the other one is 24.78.147.173. I donot know
which
one is right or both are not right.

Well, we do not know either.  To me that setup is a bit mysterious, but


that may be because I'm in Europe as opposed to Canada.
Can you try to draw some kind of picture of what is connected to what ?



-
The official User-To-User support forum of the Apache HTTP Server
Project.
See 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 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 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Justin Zhang
Ip address is 192.168.0.1

On Thu, May 14, 2009 at 10:57 AM, André Warnier  wrote:

> Justin Zhang wrote:
>
>> My setup is exactly the same as the link picture.
>>
>> I try connect routher via phone adapter and bypass phone adapter (direcly
>> to
>> DSL modem, i.e. taking phone adapter off) I got two different IPs from
>> myIPaddress.com. My routher is D-Link DI-524 wireless router
>>
>>
> Allright.
> I refer to this page :
> http://support.dlink.com/emulators/di524/st_devic.html
>
> - Connect your router directly to the DSL modem, and disconnect the Phone
> adapter.
>
> - in your router configuration :
>  - in the "Firewall" part,
>   - click "enabled"
>   - Name : HTTP server
>   - Source/Interface : WAN
>   - Source/IP Ranges start/stop : empty (*)
>   - Destination/Interface : LAN
>   - Destination/IP Range start/stop : both 192.168.0.100
>   - Destination/Protocol : TCP
>   - Destination/Port Range : 8080 and 8080
>  then click "Apply".
>
> In your router config, go to Home, then Status, then look at WAN / IP
> address, and tell us that address.
>
> (*) we try first that, and if it does not work, we will try something else.
>
>
>
>
>
>
> Thanks
>>
>> On Thu, May 14, 2009 at 9:24 AM, André Warnier  wrote:
>>
>> Ok, seen.
>>>
>>> Is that *exactly* your setup ?
>>> (if not, tell us what is different compared to the picture)
>>>
>>> Also, when you talk below of "with and without Phone adapter", what do
>>> you
>>> mean exactly ? are you switching the cables around, turning something on
>>> or
>>> off, or what ?
>>>
>>> Also, when you talk about "router", which box do you mean ?
>>>
>>>
>>>
>>>
>>>
>>> Justin Zhang wrote:
>>>
>>> You can see the diagram in the link
 http://en.wikipedia.org/wiki/File:Voip-typical.gif
 Thanks

 On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:

 Justin Zhang wrote:

> Now only local address is working http://192.168.0.100:8080/
>
>> Besides myIPaddress, is there any other way to check my external IP
>> address.
>> Since I got different IPs with and without Phone adapter.
>> 24.78.136.243
>>  is
>> with phone adapter, and the other one is 24.78.147.173. I donot know
>> which
>> one is right or both are not right.
>>
>> Well, we do not know either.  To me that setup is a bit mysterious,
>> but
>>
>> that may be because I'm in Europe as opposed to Canada.
> Can you try to draw some kind of picture of what is connected to what ?
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See 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 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 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread André Warnier

Justin Zhang wrote:

Ip address is 192.168.0.1


Justin, I am sorry but I give up.
The IP address above makes no sense as a WAN IP, so I have no idea what 
your problem is.





On Thu, May 14, 2009 at 10:57 AM, André Warnier  wrote:


Justin Zhang wrote:


My setup is exactly the same as the link picture.

I try connect routher via phone adapter and bypass phone adapter (direcly
to
DSL modem, i.e. taking phone adapter off) I got two different IPs from
myIPaddress.com. My routher is D-Link DI-524 wireless router



Allright.
I refer to this page :
http://support.dlink.com/emulators/di524/st_devic.html

- Connect your router directly to the DSL modem, and disconnect the Phone
adapter.

- in your router configuration :
 - in the "Firewall" part,
  - click "enabled"
  - Name : HTTP server
  - Source/Interface : WAN
  - Source/IP Ranges start/stop : empty (*)
  - Destination/Interface : LAN
  - Destination/IP Range start/stop : both 192.168.0.100
  - Destination/Protocol : TCP
  - Destination/Port Range : 8080 and 8080
 then click "Apply".

In your router config, go to Home, then Status, then look at WAN / IP
address, and tell us that address.

(*) we try first that, and if it does not work, we will try something else.






Thanks

On Thu, May 14, 2009 at 9:24 AM, André Warnier  wrote:

Ok, seen.

Is that *exactly* your setup ?
(if not, tell us what is different compared to the picture)

Also, when you talk below of "with and without Phone adapter", what do
you
mean exactly ? are you switching the cables around, turning something on
or
off, or what ?

Also, when you talk about "router", which box do you mean ?





Justin Zhang wrote:

You can see the diagram in the link

http://en.wikipedia.org/wiki/File:Voip-typical.gif
Thanks

On Thu, May 14, 2009 at 8:57 AM, André Warnier  wrote:

Justin Zhang wrote:


Now only local address is working http://192.168.0.100:8080/


Besides myIPaddress, is there any other way to check my external IP
address.
Since I got different IPs with and without Phone adapter.
24.78.136.243
 is
with phone adapter, and the other one is 24.78.147.173. I donot know
which
one is right or both are not right.

Well, we do not know either.  To me that setup is a bit mysterious,
but

that may be because I'm in Europe as opposed to Canada.

Can you try to draw some kind of picture of what is connected to what ?



-
The official User-To-User support forum of the Apache HTTP Server
Project.
See 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 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 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 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Evan Platt

At 11:28 AM 5/14/2009, you wrote:

Ip address is 192.168.0.1


*sigh*... Can we please take this thread off list if there's someone 
willing to help the OP offline? (I don't unfortunately have the time 
to do so now).. But I mean serious - this is about 40+ messages in 
just over 24 hours, and only about 3 of them are Apache related. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Frank Gingras
My thoughts, exactly. Have him hire a local geek for 15 minutes, and get 
this over with.


Frank.

Evan Platt wrote:

At 11:28 AM 5/14/2009, you wrote:

Ip address is 192.168.0.1


*sigh*... Can we please take this thread off list if there's someone 
willing to help the OP offline? (I don't unfortunately have the time 
to do so now).. But I mean serious - this is about 40+ messages in 
just over 24 hours, and only about 3 of them are Apache related.


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See 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 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



[us...@httpd] Limiting Connections for a Virtual Host

2009-05-14 Thread Chris Nagele
We run a service that handles tens of thousands of virtual hosts
across a bunch of servers. We recently ran in to a problem where one
customer was hitting a server, with over 7000 connection attempts in a
3 - 4 hour period.

The way it is setup now, each customer has its own virtual host in
Apache. We shard Apache instances across many servers to handle load
and reduce restart times. Is there an easy way to limit the number of
connections for each virtual host? Or maybe even per IP? We want to
avoid the situation above in the future.

Thanks,
Chris

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



[us...@httpd] VirtualHost with no ServerName in 2.2.11

2009-05-14 Thread Tony Ser
Hi,

We are developing a web application and need to create a website.
The testsite.conf contains

Namevirtualhost *:80

AllowEncodedSlashes On
Alias /testsite "/var/www/company/yyy/public"

AllowOverride All
Order allow,deny
Allow from all




We don't want to specify a fix IP Address, so we leave it with *.
This works fine under Apache 2.2.8 (in Ubuntu 8.04)
However, under Apache 2.2.11 (in Ubuntu 9.04), the settings are not
ineffect.

If we browse http://localhost/testsite/test.html, error log shows apache
trying to access /var/www/testsite/test.html instead of
/var/www/company/yyy/public/test.html

If I add "ServerName localhost", then it will work.

Is there a way specify a site configuration (i.e. AllowEncodedSlashes,
Alias, etc) with out specifying a fixed IP Address or fixed ServerName.


Thanks in advance.
Tony

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Limiting Connections for a Virtual Host

2009-05-14 Thread Justin Pasher

Chris Nagele wrote:

We run a service that handles tens of thousands of virtual hosts
across a bunch of servers. We recently ran in to a problem where one
customer was hitting a server, with over 7000 connection attempts in a
3 - 4 hour period.

The way it is setup now, each customer has its own virtual host in
Apache. We shard Apache instances across many servers to handle load
and reduce restart times. Is there an easy way to limit the number of
connections for each virtual host? Or maybe even per IP? We want to
avoid the situation above in the future.
  


Check out mod_limitipconn. You can limit globally or per virtual host 
(whether the "IP address pool" it tracks is virtual host specific, I'm, 
not sure).


http://www.dominia.org/djao/limitipconn.html

--
Justin Pasher

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Need help testing my apache server from internet

2009-05-14 Thread Evan Platt

At 12:50 PM 5/14/2009, you wrote:
The IP address is 
http://24.78.150.134:8080/ I totally 
take off both router and phone adapter and connect directly to modem.


Please don't create a new thread. You already have about 40 replies 
on your previous thread.


"

It works!"

is displayed.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread André Warnier

Well, yes.  It was just my Apache evangelist streak at work.
But this is definitely not an Apache issue.

Frank Gingras wrote:
My thoughts, exactly. Have him hire a local geek for 15 minutes, and get 
this over with.


Frank.

Evan Platt wrote:

At 11:28 AM 5/14/2009, you wrote:

Ip address is 192.168.0.1


*sigh*... Can we please take this thread off list if there's someone 
willing to help the OP offline? (I don't unfortunately have the time 
to do so now).. But I mean serious - this is about 40+ messages in 
just over 24 hours, and only about 3 of them are Apache related.


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See 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 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 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



[us...@httpd] Mass Config with mod_dav_svn

2009-05-14 Thread Chris Nagele
We currently have apache configs that contain thousands of virtual
hosts. For a long time we have been looking for a Mass Config
solution. The problem is, we have not found one that can work with
mod_dav_svn. Most of the virtual hosts handle https svn connections.

Does anyone know of a way to do this with mod_dav_svn? Or, even
better, does anyone know of better ways to manage thousands of virtual
hosts besides sharding?

For reference, here is the solution we already know about:
 http://httpd.apache.org/docs/2.0/vhosts/mass.html

Thanks,
Chris

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] VirtualHost with no ServerName in 2.2.11

2009-05-14 Thread André Warnier

Tony Ser wrote:

Hi,

We are developing a web application and need to create a website.
The testsite.conf contains

Namevirtualhost *:80



ServerName ?


AllowEncodedSlashes On


DocumentRoot   |
   |
   v


Alias /testsite "/var/www/company/yyy/public"

AllowOverride All
Order allow,deny
Allow from all




We don't want to specify a fix IP Address, so we leave it with *.
This works fine under Apache 2.2.8 (in Ubuntu 8.04)

You mean the above config ? or just the "*" ?


However, under Apache 2.2.11 (in Ubuntu 9.04), the settings are not
ineffect.

If we browse http://localhost/testsite/test.html, error log shows apache
trying to access /var/www/testsite/test.html instead of
/var/www/company/yyy/public/test.html


Probably only because your main configuration says
DocumentRoot /var/www
and by default, it carries over to the 


If I add "ServerName localhost", then it will work.


If that's the only thing you're adding, then you're lucky.


Is there a way specify a site configuration (i.e. AllowEncodedSlashes,
Alias, etc) with out specifying a fixed IP Address or fixed ServerName.



If you have only one  section, then it does not matter what
you give it as ServerName.  Pages will always be served by this VirtualHost,
because it will be the default one.

As for fixed IP address, I don't really understand what you mean.
For that, it seems that your configuration above is fine.  This Apache 
will respond to any request that reaches it on port 80, no matter 
through which one of its (possible) IP addresses.



I believe you might benefit from reading through
http://httpd.apache.org/docs/2.2/vhosts/
and try to get a basic understanding of this stuff first.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Limiting Connections for a Virtual Host

2009-05-14 Thread Chris Nagele
> Check out mod_limitipconn. You can limit globally or per virtual host
> (whether the "IP address pool" it tracks is virtual host specific, I'm, not
> sure).
>
> http://www.dominia.org/djao/limitipconn.html

Thanks Justin. We will check this out.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] VirtualHost with no ServerName in 2.2.11

2009-05-14 Thread Tony Ser
Thanks for the reply.

What we are trying to do is to create a new vhost without disrupting the 
default settings.

So that http://localhost/whatever/... Follow the default setup while
http://localhost/testsite/... Will refer to /var/www/company/yyy/public


I did look into the suggested link but most examples on multiple vhosts rely on 
either different port, different ip address, or different name but in our case 
they are all the same. It is just a path that we want to take over.

I realize the default DocumentRoot /var/www takes over all requests, and I am 
just wonder if there is a way override it just for a particular path 
"testsite". Or do we always need to edit the default config?

Editing the default config is fine for a particular server but we are working 
on a web application, to be deployed on different machines. Would be nice if we 
could just add our own vhost configuration without messing with the default.


Thanks!


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Thursday, May 14, 2009 1:37 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] VirtualHost with no ServerName in 2.2.11

Tony Ser wrote:
> Hi,
> 
> We are developing a web application and need to create a website.
> The testsite.conf contains
> 
> Namevirtualhost *:80
> 

ServerName ?

> AllowEncodedSlashes On

DocumentRoot   |
|
v

> Alias /testsite "/var/www/company/yyy/public"
> 
> AllowOverride All
> Order allow,deny
> Allow from all
> 
> 
> 
> 
> We don't want to specify a fix IP Address, so we leave it with *.
> This works fine under Apache 2.2.8 (in Ubuntu 8.04)
You mean the above config ? or just the "*" ?

> However, under Apache 2.2.11 (in Ubuntu 9.04), the settings are not
> ineffect.
> 
> If we browse http://localhost/testsite/test.html, error log shows apache
> trying to access /var/www/testsite/test.html instead of
> /var/www/company/yyy/public/test.html
> 
Probably only because your main configuration says
DocumentRoot /var/www
and by default, it carries over to the 

> If I add "ServerName localhost", then it will work.
>
If that's the only thing you're adding, then you're lucky.

> Is there a way specify a site configuration (i.e. AllowEncodedSlashes,
> Alias, etc) with out specifying a fixed IP Address or fixed ServerName.
> 

If you have only one  section, then it does not matter what
you give it as ServerName.  Pages will always be served by this VirtualHost,
because it will be the default one.

As for fixed IP address, I don't really understand what you mean.
For that, it seems that your configuration above is fine.  This Apache 
will respond to any request that reaches it on port 80, no matter 
through which one of its (possible) IP addresses.


I believe you might benefit from reading through
http://httpd.apache.org/docs/2.2/vhosts/
and try to get a basic understanding of this stuff first.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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 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: [us...@httpd] VirtualHost with no ServerName in 2.2.11

2009-05-14 Thread André Warnier

Tony Ser wrote:

Thanks for the reply.

What we are trying to do is to create a new vhost without disrupting the 
default settings.

So that http://localhost/whatever/... Follow the default setup while
http://localhost/testsite/... Will refer to /var/www/company/yyy/public


I did look into the suggested link but most examples on multiple vhosts rely on 
either different port, different ip address, or different name but in our case 
they are all the same. It is just a path that we want to take over.

I realize the default DocumentRoot /var/www takes over all requests, and I am just wonder 
if there is a way override it just for a particular path "testsite". Or do we 
always need to edit the default config?

Editing the default config is fine for a particular server but we are working 
on a web application, to be deployed on different machines. Would be nice if we 
could just add our own vhost configuration without messing with the default.



Well, that's a bit different from what you requested in the first iteration.

I believe that what you are trying to achieve will be difficult to do 
"in all generality", because these different hosts are likely to have 
different configurations to start with.
For example, not all of them may be configured to use VirtualHosts in 
the first place.


But assuming that they all are, I think you cleanest bet at this stage 
would be to add another VirtualHost, but with a different hostname, 
rather than trying to play with a sub-directory or Alias.


In any case, you cannot use a  section just to redefine a 
part of an existing webserver.  That is not what VirtualHosts are for, 
nor how they work.


Thus, suppose you have a site which currently responds to 
"http://host1.company.com";, and has its document base in /var/www (or 
wherever).
And you want to add a "test site" with a different document base.  What 
you would then have to do is :


- in the DNS system of "company.com", create a new alias (in DNS linguo, 
that's a CN record) for this same host. For example 
"host1-test.company.com", as a new alias for "host1.company.com".


- then in the Apache config of that host, create a new VirtualHost 
section *after* the ones that already exist :



  ServerName host1-test.company.com
  DocumentRoot /somewhere/else
  .. whatever else you want there ..


an then just put your test application under /somewhere/else (or under 
/somewhere/else/testsite if you prefer).


The above refers to the part "Name-based virtual hosts" in the 
previously-mentioned documentation.  IP-address based virtual hosting is 
something else altogether, not to be mixed or confused with this.



There may be other solutions based on mod_rewrite or Alias, but I 
believe that this will in the end be more complicated, and lead you into 
a bunch of issues of all kinds with relative URLs, authentication and 
authorization, existing aliases etc..


Using a separate virtual host as indicated above is like adding another 
webserver machine, completely separate from the original one, where the 
possibilities of mixup are limited.


I recommend you re-load this document :
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
and re-read carefully in particular the section
"Using Name-based Virtual Hosts"
(Just ignore whatever it says about IP addresses, and use "*" for that.)




-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Jonas Eckerman

Justin Zhang wrote:

I try connect routher via phone adapter and bypass phone adapter 
(direcly to DSL modem, i.e. taking phone adapter off) I got two 
different IPs from myIPaddress.com.


This could be because you have get dynamic IP with DHCP. A possible 
scenario:


First the phone adapter gets an IP from your ISPs DHCP server.

When you disconnect the phone adapter, the D-Link router needs an IP 
from the DHCP server. Since the D-Link router has a different MAC 
address it will get a different IP address.


Depending on the DHCP servers config you may get a new IP address every 
now and then even if you don't change your setup.


With a dynamic IP you simply need to accept that your IP may change at 
any time and that it is likely to change whenever you change your setup 
or tur off the router or phone adapter (wichever connects to the DSL modem).


If this is a problem, you could use a dynamic DNS service to get a fixed 
host name even though you have a dynamic IP.



Please note that I don't know if the above scenario is applicable to 
your situation.



Regards
/Jonas
--
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



[us...@httpd] best practices for mod_rewrite

2009-05-14 Thread LoD MoD
Hi List,Is the best practice for using rewrites in multiple areas of a site
to use .htaccess files?
What if the destination URL is dynamic? Create a skeleton directory?

Thanks.


Re: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Stephen Love

I have also found the modem equipment they supply from your provider also has 
an IDENTIFIER that is equivelant to an IP address... in other words, they TELL 
you that you have a DYNAMIC IP when there is a SEPARATE STATIC IP identifying 
your EQUIPMENT... use THAT instead! If you press them HARD enough, they will 
tell you what it is!

See us online at http://www.LOVEnCompany.com.

-- Original Message --
From: Jonas Eckerman 
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Fwd: Home Web Server
Date: Fri, 15 May 2009 00:59:48 +0200

Justin Zhang wrote:

> I try connect routher via phone adapter and bypass phone adapter 
> (direcly to DSL modem, i.e. taking phone adapter off) I got two 
> different IPs from myIPaddress.com.

This could be because you have get dynamic IP with DHCP. A possible 
scenario:

First the phone adapter gets an IP from your ISPs DHCP server.

When you disconnect the phone adapter, the D-Link router needs an IP 
from the DHCP server. Since the D-Link router has a different MAC 
address it will get a different IP address.

Depending on the DHCP servers config you may get a new IP address every 
now and then even if you don't change your setup.

With a dynamic IP you simply need to accept that your IP may change at 
any time and that it is likely to change whenever you change your setup 
or tur off the router or phone adapter (wichever connects to the DSL modem).

If this is a problem, you could use a dynamic DNS service to get a fixed 
host name even though you have a dynamic IP.


Please note that I don't know if the above scenario is applicable to 
your situation.


Regards
/Jonas
-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Protect your investment. Click here to find the homeowner insurance policy that 
you need.
http://thirdpartyoffers.juno.com/TGL2131/fc/BLSrjnsHGircQTqrbspipj2NKeFr6m7qvVEjyp3UHmranvdd6y337n9zyCk/

Re: [us...@httpd] VirtualHost with no ServerName in 2.2.11

2009-05-14 Thread Stephen Love

I run virtualhost with 18 sitenames, each having its own subdirectory system, 
running off of ONE server, all with the SAME IP address, just different names. 
SOME referenced from a DYNAMIC NAME SERVER, some static... AND multiple names 
could come to the SAME site, and based on the NAME could be set up through PHP 
etc to choose a different set of pages to show, etc. TRY PHP. You won't regret 
it.

See us online at http://www.LOVEnCompany.com.

-- Original Message --
From: André Warnier 
To: users@httpd.apache.org
Subject: Re: [us...@httpd] VirtualHost with no ServerName in 2.2.11
Date: Fri, 15 May 2009 00:37:58 +0200

Tony Ser wrote:
> Thanks for the reply.
> 
> What we are trying to do is to create a new vhost without disrupting the 
> default settings.
> 
> So that http://localhost/whatever/... Follow the default setup while
> http://localhost/testsite/... Will refer to /var/www/company/yyy/public
> 
> 
> I did look into the suggested link but most examples on multiple vhosts rely 
> on either different port, different ip address, or different name but in our 
> case they are all the same. It is just a path that we want to take over.
> 
> I realize the default DocumentRoot /var/www takes over all requests, and I am 
> just wonder if there is a way override it just for a particular path 
> "testsite". Or do we always need to edit the default config?
> 
> Editing the default config is fine for a particular server but we are working 
> on a web application, to be deployed on different machines. Would be nice if 
> we could just add our own vhost configuration without messing with the 
> default.
> 
> 
Well, that's a bit different from what you requested in the first iteration.

I believe that what you are trying to achieve will be difficult to do 
"in all generality", because these different hosts are likely to have 
different configurations to start with.
For example, not all of them may be configured to use VirtualHosts in 
the first place.

But assuming that they all are, I think you cleanest bet at this stage 
would be to add another VirtualHost, but with a different hostname, 
rather than trying to play with a sub-directory or Alias.

In any case, you cannot use a  section just to redefine a 
part of an existing webserver.  That is not what VirtualHosts are for, 
nor how they work.

Thus, suppose you have a site which currently responds to 
"http://host1.company.com";, and has its document base in /var/www (or 
wherever).
And you want to add a "test site" with a different document base.  What 
you would then have to do is :

- in the DNS system of "company.com", create a new alias (in DNS linguo, 
that's a CN record) for this same host. For example 
"host1-test.company.com", as a new alias for "host1.company.com".

- then in the Apache config of that host, create a new VirtualHost 
section *after* the ones that already exist :


  ServerName host1-test.company.com
  DocumentRoot /somewhere/else
  .. whatever else you want there ..


an then just put your test application under /somewhere/else (or under 
/somewhere/else/testsite if you prefer).

The above refers to the part "Name-based virtual hosts" in the 
previously-mentioned documentation.  IP-address based virtual hosting is 
something else altogether, not to be mixed or confused with this.


There may be other solutions based on mod_rewrite or Alias, but I 
believe that this will in the end be more complicated, and lead you into 
a bunch of issues of all kinds with relative URLs, authentication and 
authorization, existing aliases etc..

Using a separate virtual host as indicated above is like adding another 
webserver machine, completely separate from the original one, where the 
possibilities of mixup are limited.

I recommend you re-load this document :
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
and re-read carefully in particular the section
"Using Name-based Virtual Hosts"
(Just ignore whatever it says about IP addresses, and use "*" for that.)




-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Click now to find great remedies for hangovers!
http://thirdpartyoffers.juno.com/TGL2131/fc/BLSrjnsJQcRBmpUEqH21ZSzcYMtfZrAjR9KjPxWN2VoFSoxpH0bVfTNUMoQ/

Re: [us...@httpd] best practices for mod_rewrite

2009-05-14 Thread William A. Rowe, Jr.
LoD MoD wrote:
> Hi List,
> Is the best practice for using rewrites in multiple areas of a site to
> use .htaccess files?

Best practices in httpd disavow all use of .htaccess for performance,
security and maintenance rationals.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



[us...@httpd] Switching from mod_jk to mod_proxy has weird effect on mod_alias?

2009-05-14 Thread Nicholas Wheeler
Heya users,

   I've got a VirtualHost definition with about 68 mod_alias Redirect
lines. I've been using mod_jk to connect to JBoss, but I'm trying to
switch over to mod_proxy...however, when I do, my Redirect's no longer
work. The entire site works with mod_proxy, except the Redirects stop
working. When I enter a path that I expect to get redirected, I see a
white screen in firefox. In apache logs I see a 400 error being
thrown...which is kinda what I expect if the path doesn't get
redirected. Why would my Redirect's work with mod_jk and not
mod_proxy? Here's an example of my configuration,

Redirect /sitemap http://domain.com/project/public/SiteMap.do
#  JkMount /* worker1
   
   Order deny,allow
   Allow from all
   
   ProxyPreserveHost on
   ProxyPass / http://localhost:8090/
   ProxyPassReverse / http://localhost:8090/



-- 
Nicholas Wheeler

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Evan Platt

At 05:15 PM 5/14/2009, you wrote:

I have also found the modem equipment they supply from your provider 
also has an IDENTIFIER that is equivelant to an IP address... in 
other words, they TELL you that you have a DYNAMIC IP when there is 
a SEPARATE STATIC IP identifying your EQUIPMENT... use THAT instead! 
If you press them HARD enough, they will tell you what it is!


What??? I've never heard this. And I worked at ISP's for 5 years, and 
worked WITH ISP's for 10. I'm not sure what you're thinking of, but 
that certainly isn't the case at any ISP I've ever worked for, with 
or dealt with. Maybe on a point to point, but residential DSL or cable? No. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Eric Covener
On Thu, May 14, 2009 at 8:15 PM, Stephen Love  wrote:
>
> I have also found the modem equipment they supply from your provider also
> has an IDENTIFIER that is equivelant to an IP address... in other words,
> they TELL you that you have a DYNAMIC IP when there is a SEPARATE STATIC IP
> identifying your EQUIPMENT... use THAT instead! If you press them HARD
> enough, they will tell you what it is!

The truth is out there!

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Stephen Love
Shirley, you jest... how else could an equipment identify itself when turned 
on... I pressed COX CABLE after PURCASING DYNAMIC BUSINESS CABLE connection, 
only to find that they identified your EQUIPMENT before assigning a DYNAMIC IP 
from the pool... but already HAD a PERMANENT EQUIPMENT IP. They gave me that 
one, and for the past year I have enjoyed STATIC IP of  68.99.64.11
Try it!

See us online at http://www.LOVEnCompany.com.

-- Original Message --
From: Evan Platt 
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Fwd: Home Web Server
Date: Thu, 14 May 2009 17:59:14 -0700

At 05:15 PM 5/14/2009, you wrote:

>I have also found the modem equipment they supply from your provider 
>also has an IDENTIFIER that is equivelant to an IP address... in 
>other words, they TELL you that you have a DYNAMIC IP when there is 
>a SEPARATE STATIC IP identifying your EQUIPMENT... use THAT instead! 
>If you press them HARD enough, they will tell you what it is!

What??? I've never heard this. And I worked at ISP's for 5 years, and 
worked WITH ISP's for 10. I'm not sure what you're thinking of, but 
that certainly isn't the case at any ISP I've ever worked for, with 
or dealt with. Maybe on a point to point, but residential DSL or cable? No. 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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



Meet active single Seniors for fun romance.
http://thirdpartyoffers.juno.com/TGL2131/fc/BLSrjnsO3jAR0YtE0lEKTL83xXQg7CmHPw1s52MSldwIEXwXky2ddoiOaAo/

Re: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Eric Covener
On Thu, May 14, 2009 at 10:05 PM, Stephen Love  wrote:
> Shirley, you jest... how else could an equipment identify itself when turned
> on...

A MAC address is a good start.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Evan Platt

At 07:05 PM 5/14/2009, you wrote:

Shirley, you jest... how else could an equipment identify itself 
when turned on... I pressed COX CABLE after PURCASING DYNAMIC 
BUSINESS CABLE connection, only to find that they identified your 
EQUIPMENT before assigning a DYNAMIC IP from the pool... but already 
HAD a PERMANENT EQUIPMENT IP. They gave me that one, and for the 
past year I have enjoyed STATIC IP of  68.99.64.11


Try it!


It's called a MAC address.

So you have two IP addresses? What IP address shows if you go to 
www.whatismyip.com ?


Because I see your 'secret' IP IS 68.99.64.11 in your mail headers:
X-Originating-IP: [68.99.64.11]

So, if this 'second' IP address is some hidden secret, it's not 
hiding. What's your 'other' IP?


Sounds like Cox simply uses DHCP, but assigns the IP address based on 
your mac address. I've had DSL where I've kept the same IP for 
months. No big deal, I use a dynamic dns client. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Gund Wehsling
Just a consideration

As far as I know, ADSL uses PPPoA http://en.wikipedia.org/wiki/Pppoa. This is 
how the ISP can have you authenticate before giving you an IP address and 
consequently, you can be denied access before a 'connection' can be made.

Of course, the 'connection' is IP, which then runs over the ATM, as the name 
implies, Point to Point Protocol OVER ATM.

This may not be the case in all installation all over the world, but is the 
case here in NZ. MAC addresses, being unique by RFC definition are the 
underlying magic in IP networks, but ATM magic happens at Layer 1 (connection), 
so no MAC address required and consequently, your ISP can identify you and have 
you authenticate before shelling out an IP address. I am not 100% certain, 
having not worked with ATM before, but I assume the only way to uniquely 
identify any ATM packet is by the switch port, which explains why a techie has 
to connect your new ADSL before it will work (as opposed to dial up that works 
from anywhere) and each provider requires access to the street cabinet. You can 
test this by taking your ADSL modem from one ISP to a friends house who belongs 
to another ISP. It does not work, hence the connection layer is the controlling 
authority.

The articles on Wikipedia are well written and easy to understand with good 
links.

I hope this helps.


Gund


From: Evan Platt [e...@espphotography.com]
Sent: Friday, 15 May 2009 14:34
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Fwd: Home Web Server

At 07:05 PM 5/14/2009, you wrote:

>Shirley, you jest... how else could an equipment identify itself
>when turned on... I pressed COX CABLE after PURCASING DYNAMIC
>BUSINESS CABLE connection, only to find that they identified your
>EQUIPMENT before assigning a DYNAMIC IP from the pool... but already
>HAD a PERMANENT EQUIPMENT IP. They gave me that one, and for the
>past year I have enjoyed STATIC IP of  68.99.64.11
>
>Try it!

It's called a MAC address.

/snip
-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] Fwd: Home Web Server

2009-05-14 Thread Evan Platt
That's correct.. There's layer 2 and then there's layer 3. The 
initial connection to most ISP's take place with the MAC address, and 
use arp traffic - it's not IP based.


Also, your DSL modem won't work with another ISP because the 
languages spoken (simplistic terms) by the modems to the ISP are 
different from ISP to ISP. SDSL modems MAY work, more likely than 
ADSL, but same reasoning.


Essentially, there is no 'hidden' IP address. You have one IP 
address. And most providers now, it's static even if it isn't.


I just looked, and I switched to Comcast the middle of March. I've 
had the same IP since. Rebooted EVERYTHING a number of times - 
computer, router, cable modem, etc.


At 07:52 PM 5/14/2009, you wrote:

Just a consideration

As far as I know, ADSL uses PPPoA 
http://en.wikipedia.org/wiki/Pppoa. This is how the ISP can have you 
authenticate before giving you an IP address and consequently, you 
can be denied access before a 'connection' can be made.


Of course, the 'connection' is IP, which then runs over the ATM, as 
the name implies, Point to Point Protocol OVER ATM.


This may not be the case in all installation all over the world, but 
is the case here in NZ. MAC addresses, being unique by RFC 
definition are the underlying magic in IP networks, but ATM magic 
happens at Layer 1 (connection), so no MAC address required and 
consequently, your ISP can identify you and have you authenticate 
before shelling out an IP address. I am not 100% certain, having not 
worked with ATM before, but I assume the only way to uniquely 
identify any ATM packet is by the switch port, which explains why a 
techie has to connect your new ADSL before it will work (as opposed 
to dial up that works from anywhere) and each provider requires 
access to the street cabinet. You can test this by taking your ADSL 
modem from one ISP to a friends house who belongs to another ISP. It 
does not work, hence the connection layer is the controlling authority.


The articles on Wikipedia are well written and easy to understand 
with good links.


I hope this helps.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: [us...@httpd] P3P policy for each virtual host

2009-05-14 Thread Paras Fadte
So following would show the privacy report using the file
/w3c/a/p3p.xml file  for a.com and  /w3c/b/p3p.xml  for b.com ?


   ServerName a.com
   CustomLog "|/home/apache/bin/rotatelogs
/home/apache/logs/access_log.a.com 300"
   ErrorLog /home/apache/logs/error_log.a.com

   
Header set P3P "CP=\"NOI DSP COR CURa ADMa DEVa IVAo OUR BUS UNI
COM NAV OTC\", policyref=\"/w3c/a/p3p.xml\""
   






   ServerName b.com
   CustomLog "|/home/apache/bin/rotatelogs
/home/apache/logs/access_log.b.com 300"
   ErrorLog /home/apache/logs/error_log.b.com

   
Header set P3P "CP=\"NOI DSP COR CURa ADMa DEVa IVAo OUR BUS UNI
COM NAV OTC\", policyref=\"/w3c/b/p3p.xml\""
   



Thank you.

-Paras


On Thu, May 14, 2009 at 7:05 PM, Tom Evans  wrote:
> On Thu, 2009-05-14 at 16:58 +0530, Paras Fadte wrote:
>> Hi,
>>
>> Is it possible to set different P3P policy for each of the virtual
>> hosts defined in Apache ?
>>
>> Thank you.
>>
>> -Paras
>>
>
> Yes.
>
> P3P is set either by including the info in an abbreviated form in a
> header, or by including a header indicating where the policy file is
> located, or by accessing the policy file in the ''well known location''
> '/w3c/p3p.xml'.
>
> You can control headers using mod_headers, and you can control what
> content is available in what locations in a variety of means, so there
> are a variety of choices.
>
>
> Tom
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 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 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



[us...@httpd] .htaccess force download not working

2009-05-14 Thread J. Bakshi
Dear list,

I like to force download the pdf and mp3 files from a site. To achieve
this I have added the line in .htaccess

AddType application/octet-stream .pdf
AddType application/octet-stream .mp3

But it is not working with IE7, opera-9 but sometime firefox honor the
setting.
How can I make all browser to honor the setting through .htaccess setting ?

please suggest.
Thanks


-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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