Bill Jones | 1 Jul 2006 02:07
Picon

Re: "public_html" for each user don"t work.

On 6/30/06, Joshua Slive <joshua <at> slive.ca> wrote:
> On 6/30/06, rsomsak123 <at> mor-or.pn.psu.ac.th
> <rsomsak123 <at> mor-or.pn.psu.ac.th> wrote:
>
> >       Have any idea ?
>
> You've already been told several times that the problem is likely
> SELinux config, and you've been given direct links explaining how to
> understand and solve the problem.  What more do you want?

(The list is way more patient than I.)

Somsak:
What does cat /etc/selinux/config show?

Also, if you execute
su - -c "setenforce 0"

And restart your web server using:
su - -c "service httpd stop && service httpd start"

Does the error appear now?
--

-- 
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
(Continue reading)

Khai Doan | 1 Jul 2006 03:12
Picon
Favicon

RE: Remote log files?

For me, I wrote a simple script send_apache_log.pl, which read apache log 
files, print it to STDOUT, remember where it left off by writing to a file 
in /tmp.  I install this on the servers.  Then on my other workstation, I 
have another script collect_apache_log.pl, which run periodically via cron, 
that invoke the remote script via passwordless-ssh.  I am not a security 
expert, but this seems to be better than using syslog utility.

Khai

>From: "Charlie Davis" <cdavis <at> 2wire.com>
>Reply-To: users <at> httpd.apache.org
>To: <users <at> httpd.apache.org>
>Subject: [users <at> httpd] Remote log files?
>Date: Thu, 29 Jun 2006 10:32:44 -0700
>
>Hey all,
>Is there anyway to setup apache 1.3.6 to send its log files to a remote
>server? Info to point me in the right direction would be fine. Google
>has been no help. :|
>
>Charlie Davis
>WebMaster
>2Wire, Inc.
>
>cdavis <at> 2Wire.com
>www.2Wire.com
>
>2Wire, Inc. Company Confidential. The information contained in this
>message may be privileged and/or confidential. If the reader of this
>message is not the intended recipient, or an employee or agent
(Continue reading)

Stephane Nicoll | 1 Jul 2006 15:14
Picon
Gravatar

URL redirection based on client's IP address

Hi,

I am configuring two maven repositories on two sites using maven
proxy[1]. The sites are in two different countries with a 1Mbps line
between them so I need to make sure that requests are localized.

So far I have the following setup on both sites

- Apache2 (80)  w/ Tomcat 5.5 (8080)
- The following configuration for the virtual host

<VirtualHost *:80>
    ServerName maven-yy.xxx.com
    ServerAlias  maven-yy.xxx.com
    ServerAdmin sni <at> xxx.com
    DocumentRoot d:/www/maven.xxx.com
    ErrorLog logs/maven.xxx.com-error.log
    CustomLog logs/maven.xxx.com-access.log common

    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://maven-yy.xxx.com:8080/
    ProxyPassReverse / http://maven-yy.xxx.com:8080/
    <Location />
        Order allow,deny
        Allow from all
(Continue reading)

David Gianndrea | 1 Jul 2006 18:17
Favicon

Re: Mod_proxy, and ProxyPass not binding to the virtual host ip address

No it is not an issue for us due to auth, but rather firewall
rules. I wonder if an enhancement request would possible for
the next release. Do you know the best way to submit such a
request?

Thanks for the quick response!

Joshua Slive wrote:
> On 6/30/06, David Gianndrea <dgianndrea <at> comsquared.com> wrote:
>> In using this SSL VirtualHost config with the ProxyPass option
>> we are seeing that the source IP address of the proxy request
>> does not come from the VirtualHost 10.82.40.101, but from the
>> main http server IP 10.82.40.100. Does anyone know why this would
>> be or how to correct it?
> 
> I don't believe there is any way to configure apache to use a specific
> IP address on outgoing requests.  It will simply use whatever the OS
> gives it.
> 
> If you are using this info for authenticating the request, you should
> get the vhost to add something to the request headers to confirm which
> vhost it came from.
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
>   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
(Continue reading)

Joshua Slive | 1 Jul 2006 19:33
Picon

Re: Mod_proxy, and ProxyPass not binding to the virtual host ip address

On 7/1/06, David Gianndrea <dgianndrea <at> comsquared.com> wrote:
> No it is not an issue for us due to auth, but rather firewall
> rules. I wonder if an enhancement request would possible for
> the next release. Do you know the best way to submit such a
> request?

The bug database / issue tracker:
http://httpd.apache.org/bug_report.html

Requests like this are much more likely to be fulfilled when they come
with patch suggestions.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Joshua Slive | 1 Jul 2006 21:26
Picon

Re: URL redirection based on client's IP address

On 7/1/06, Stephane Nicoll <stephane.nicoll <at> gmail.com> wrote:
> Hi,
>
> I am configuring two maven repositories on two sites using maven
> proxy[1]. The sites are in two different countries with a 1Mbps line
> between them so I need to make sure that requests are localized.
>
> So far I have the following setup on both sites
>
> - Apache2 (80)  w/ Tomcat 5.5 (8080)
> - The following configuration for the virtual host
>
> <VirtualHost *:80>
>     ServerName maven-yy.xxx.com
>     ServerAlias  maven-yy.xxx.com
>     ServerAdmin sni <at> xxx.com
>     DocumentRoot d:/www/maven.xxx.com
>     ErrorLog logs/maven.xxx.com-error.log
>     CustomLog logs/maven.xxx.com-access.log common
>
>     ProxyRequests Off
>     <Proxy *>
>         Order deny,allow
>         Allow from all
>     </Proxy>
>
>     ProxyPass / http://maven-yy.xxx.com:8080/
>     ProxyPassReverse / http://maven-yy.xxx.com:8080/
>     <Location />
>         Order allow,deny
(Continue reading)

Rob Wilkerson | 1 Jul 2006 21:58
Picon
Gravatar

Re: mod_rewrite Scenario Assistance

I've gotten some great feedback on this question, but would still
really like to see some kind of example code to help me get started.
I suspect I'll need to use RewriteBase and RewriteCond in addition to
RewriteRule, but I'm not feeling all that confident in my, ahem,
analysis.

In my case, for any given virtual host, I need everything to go to
landingpage.php *except* for requests to anything in /se or anything
in /bfg (both are aliases - Alias /se /opt/product/version/se).  Can
anyone throw together some simple directives to show me how I might
accomplish this?  I also need to pass along the original URL, but I
imagine I can work that out if I understand the first part well
enough.  The rewrite itself is where I think I'm most lost.

Any similar config examples would be very much appreciated.

Thank you.

On 6/28/06, Rob Wilkerson <r.d.wilkerson <at> gmail.com> wrote:
> First let me say that I hope this is the proper mailing list for my
> question.  If that's not the case, please redirect me and I'll be
> happy to post there.
>
> I'm taking over an application that currently includes an Apache
> module written to redirect web traffic to one or more virtual hosts.
> In looking at what it does, I'm wondering whether I can accomplish the
> same thing with mod_rewrite and not have to worry about:  1)
> rebuilding the module for each version of Apache and 2) compiling for
> multiple versions on multiple platforms (windows, linux, solaris -
> currently).
(Continue reading)

Joshua Slive | 2 Jul 2006 00:09
Picon

Re: Re: mod_rewrite Scenario Assistance

On 7/1/06, Rob Wilkerson <r.d.wilkerson <at> gmail.com> wrote:
> I've gotten some great feedback on this question, but would still
> really like to see some kind of example code to help me get started.
> I suspect I'll need to use RewriteBase and RewriteCond in addition to
> RewriteRule, but I'm not feeling all that confident in my, ahem,
> analysis.
>
> In my case, for any given virtual host, I need everything to go to
> landingpage.php *except* for requests to anything in /se or anything
> in /bfg (both are aliases - Alias /se /opt/product/version/se).  Can
> anyone throw together some simple directives to show me how I might
> accomplish this?  I also need to pass along the original URL, but I
> imagine I can work that out if I understand the first part well
> enough.  The rewrite itself is where I think I'm most lost.

You don't need RewriteBase unless you are using .htaccess files.  You
can also avoid RewriteConf for a simple scenario like this:

RewriteEngine On
RewriteRule ^/bfg - [L]
RewriteRule ^/se - [L]
RewriteRule ^/landingpage.php - [L]
RewriteRule ^/(.*) /landingpage.php?$1

The first three rules are rewrite a path back to itself and then end
processing.  The last RewriteRule does the real work.  I passed the
original path in the query string, but it could also be passed as
PATH_INFO or just fished out of the environment.  (Try dumping the
entire environment in you landingpage.php and you should be able to
pick out the original path someplace.)  Use the RewriteLog to debug.
(Continue reading)

Rob Wilkerson | 2 Jul 2006 00:22
Picon
Gravatar

Re: Re: mod_rewrite Scenario Assistance

Thanks, Joshua.  I'm glad I asked.  The ways I was planning to attempt
would've been *far* more complex.  I had no idea it would be that
simple.

If I understand you correctly...mod_rewrite does *not* modify the CGI
variables?  If not, then I probably don't have to pass anything along
at all.  That, of course, would be ideal.

One last question (for now), if you don't mind: can you explain your
last paragraph?  For me, local referrers still need redirection.  This
is for a CMS that stores pages as data.  The "landing page" is
actually a rendering engine that compiles and caches the data as a
physical file.  I was trying to simplify the example scenario.  Even
so, I'd like to understand what your final condition is doing.
Specifically, the NC portion.  I believe the rest is checking the
referring URL for anything that is not within the site I'm accessing
and redirecting only then.

Thanks again.  That really was an eye-opener for me.

On 7/1/06, Joshua Slive <joshua <at> slive.ca> wrote:
> On 7/1/06, Rob Wilkerson <r.d.wilkerson <at> gmail.com> wrote:
> > I've gotten some great feedback on this question, but would still
> > really like to see some kind of example code to help me get started.
> > I suspect I'll need to use RewriteBase and RewriteCond in addition to
> > RewriteRule, but I'm not feeling all that confident in my, ahem,
> > analysis.
> >
> > In my case, for any given virtual host, I need everything to go to
> > landingpage.php *except* for requests to anything in /se or anything
(Continue reading)

Joshua Slive | 2 Jul 2006 00:35
Picon

Re: Re: mod_rewrite Scenario Assistance

On 7/1/06, Rob Wilkerson <r.d.wilkerson <at> gmail.com> wrote:
> Thanks, Joshua.  I'm glad I asked.  The ways I was planning to attempt
> would've been *far* more complex.  I had no idea it would be that
> simple.
>
> If I understand you correctly...mod_rewrite does *not* modify the CGI
> variables?  If not, then I probably don't have to pass anything along
> at all.  That, of course, would be ideal.

If by "CGI variables" you mean the query string, then my example did,
in fact, change them.  But if you leave off the "?$1" they should be
left unchanged.  (Your script may need to look in
REDIRECT_QUERY_STRING.  That's why I suggest dumping all the variables
to see what is available.)

>
> One last question (for now), if you don't mind: can you explain your
> last paragraph?  For me, local referrers still need redirection.  This
> is for a CMS that stores pages as data.  The "landing page" is
> actually a rendering engine that compiles and caches the data as a
> physical file.  I was trying to simplify the example scenario.  Even
> so, I'd like to understand what your final condition is doing.
> Specifically, the NC portion.  I believe the rest is checking the
> referring URL for anything that is not within the site I'm accessing
> and redirecting only then.

I thought you mean langing page as in a page that you redirect
off-site visitors to when they first arrive.  You are correct it is
not needed in the scenario you describe.  NC stands for No Case,
meaning the test is case-insensitive.  Check the documentation for
(Continue reading)


Gmane