You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Temp Temp <da...@gmail.com> on 2016/05/09 15:11:41 UTC
Apache redirect
Hi All
Need help to trace how the redirect is happening
We have some static pages and dynamic pages (Using Python) and we are using
apache 2.2.15 (Unix Environment).
We have a URL to edit product details. When this URL is used in the
intranet it is displaying the product details When the same URL is used on
Internet, It is redirecting to home page. Not sure where this redirect is
happening.
Any help is appreciated.
Thanks and Regards
Naga
Re: Apache redirect
Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
You should definitely go to an Apache https help list, or perhaps here :
http://modwsgi.readthedocs.io/en/develop/finding-help.html
I do not see any Rewrite or redirects in what you show below, although maybe the
AliasMatch below could be considered as a form of internal redirect (but not one going
back to the browser).
Nor do I see below anything which could explain a difference of behaviour depending on
where the client is coming from.
If you are adamant that there is no front-end proxy, and if what you show below is all
there is, then I must suspect that it is something at the level of mod_wsgi which treats
insiders and outsiders differently. Maybe your python wsgi scripts expect some form of
authentication from outsiders, and send them back to the homepage if they don't pass
muster ? (and maybe the "WSGIPassAuthorization" below has something to do with that).
(I'm just guessing heavily here, I don't know mod_wsgi at all).
But again, this is the Tomcat Users list, and we don't want to be using their bandwidth
for dealing with issues for which the Apache httpd guys and the mod_wsgi guys are
certainly more up to par.
The comments above were made here just in a spirit of oecumenical and brotherly love for
our non-Tomcat Apache colleagues.
On 09.05.2016 19:01, Temp Temp wrote:
> Thanks Andre. I am not aware of any proxy in our network. I am pretty sure
> the request is directly coming to Apache. I am trying to understand the
> httpd.conf file. There are several RewriteRule's and redirects. Here is
> the virtual host configuration.
>
> ServerName www.xxx.com
> WSGIProcessGroup web2py
> WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
> WSGIPassAuthorization On
>
> <Directory /opt/web-apps/web2py>
> AllowOverride None
> Order Allow,Deny
> Deny from all
> <Files wsgihandler.py>
> Allow from all
> </Files>
> </Directory>
>
> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
> /opt/web-apps/web2py/applications/$1/static/$2
>
> <Directory /opt/web-apps/web2py/applications/*/static>
> Options -Indexes
> Order Allow,Deny
> Allow from all
> </Directory>
>
> <Location /admin>
> Deny from all
> </Location>
>
> <LocationMatch ^/([^/]+)/appadmin>
> Deny from all
> </LocationMatch>
>
> CustomLog /var/log/httpd/access_log common
> ErrorLog /var/log/httpd/error_log
>
>
> On Mon, May 9, 2016 at 11:57 AM, Andr� Warnier (tomcat) <aw...@ice-sa.com>
> wrote:
>
>> On 09.05.2016 18:47, Temp Temp wrote:
>>
>>> Thanks Andre. Will do
>>>
>>
>> Your are welcome.
>> Based on the minimal information you provided below, I will venture a
>> guess however :
>> It may be that when users access your application from the Internet, this
>> goes through a front-end proxy server before reaching your webserver. And
>> that it is this proxy which does not forward the calls correctly. So it is
>> probably the proxy server people you would need to talk to first.
>>
>>
>>
>>
>>> On Mon, May 9, 2016 at 11:37 AM, Andr� Warnier (tomcat) <aw...@ice-sa.com>
>>> wrote:
>>>
>>> On 09.05.2016 17:11, Temp Temp wrote:
>>>>
>>>> Hi All
>>>>>
>>>>> Need help to trace how the redirect is happening
>>>>>
>>>>> We have some static pages and dynamic pages (Using Python) and we are
>>>>> using
>>>>> apache 2.2.15 (Unix Environment).
>>>>>
>>>>>
>>>> Then you are asking for help on the wrong list. This one is for Apache
>>>> Tomcat, which is the Java Servlet Engine.
>>>> The list you want can probably be found here :
>>>> http://httpd.apache.org/lists.html
>>>>
>>>>
>>>> We have a URL to edit product details. When this URL is used in the
>>>>> intranet it is displaying the product details When the same URL is used
>>>>> on
>>>>> Internet, It is redirecting to home page. Not sure where this redirect
>>>>> is
>>>>> happening.
>>>>>
>>>>>
>>>>> But with a description like the above, I am not sure that anyone would
>>>> be
>>>> able to help you. You would have first to provide some description of
>>>> your
>>>> network for instance.
>>>> When Internet users want to access your website, which server/proxy are
>>>> they connecting with ?
>>>> (I mean this as a question to answer on the http list, so that they can
>>>> help you further).
>>>> And you might also want to provide a copy of your Apache httpd
>>>> configuration (after removing any sensitive information). And be a bit
>>>> more
>>>> precise than just "Unix environment".
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache redirect
Posted by Temp Temp <da...@gmail.com>.
Thanks Andre. I am not aware of any proxy in our network. I am pretty sure
the request is directly coming to Apache. I am trying to understand the
httpd.conf file. There are several RewriteRule's and redirects. Here is
the virtual host configuration.
ServerName www.xxx.com
WSGIProcessGroup web2py
WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
WSGIPassAuthorization On
<Directory /opt/web-apps/web2py>
AllowOverride None
Order Allow,Deny
Deny from all
<Files wsgihandler.py>
Allow from all
</Files>
</Directory>
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
/opt/web-apps/web2py/applications/$1/static/$2
<Directory /opt/web-apps/web2py/applications/*/static>
Options -Indexes
Order Allow,Deny
Allow from all
</Directory>
<Location /admin>
Deny from all
</Location>
<LocationMatch ^/([^/]+)/appadmin>
Deny from all
</LocationMatch>
CustomLog /var/log/httpd/access_log common
ErrorLog /var/log/httpd/error_log
On Mon, May 9, 2016 at 11:57 AM, André Warnier (tomcat) <aw...@ice-sa.com>
wrote:
> On 09.05.2016 18:47, Temp Temp wrote:
>
>> Thanks Andre. Will do
>>
>
> Your are welcome.
> Based on the minimal information you provided below, I will venture a
> guess however :
> It may be that when users access your application from the Internet, this
> goes through a front-end proxy server before reaching your webserver. And
> that it is this proxy which does not forward the calls correctly. So it is
> probably the proxy server people you would need to talk to first.
>
>
>
>
>> On Mon, May 9, 2016 at 11:37 AM, André Warnier (tomcat) <aw...@ice-sa.com>
>> wrote:
>>
>> On 09.05.2016 17:11, Temp Temp wrote:
>>>
>>> Hi All
>>>>
>>>> Need help to trace how the redirect is happening
>>>>
>>>> We have some static pages and dynamic pages (Using Python) and we are
>>>> using
>>>> apache 2.2.15 (Unix Environment).
>>>>
>>>>
>>> Then you are asking for help on the wrong list. This one is for Apache
>>> Tomcat, which is the Java Servlet Engine.
>>> The list you want can probably be found here :
>>> http://httpd.apache.org/lists.html
>>>
>>>
>>> We have a URL to edit product details. When this URL is used in the
>>>> intranet it is displaying the product details When the same URL is used
>>>> on
>>>> Internet, It is redirecting to home page. Not sure where this redirect
>>>> is
>>>> happening.
>>>>
>>>>
>>>> But with a description like the above, I am not sure that anyone would
>>> be
>>> able to help you. You would have first to provide some description of
>>> your
>>> network for instance.
>>> When Internet users want to access your website, which server/proxy are
>>> they connecting with ?
>>> (I mean this as a question to answer on the http list, so that they can
>>> help you further).
>>> And you might also want to provide a copy of your Apache httpd
>>> configuration (after removing any sensitive information). And be a bit
>>> more
>>> precise than just "Unix environment".
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Apache redirect
Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 09.05.2016 18:47, Temp Temp wrote:
> Thanks Andre. Will do
Your are welcome.
Based on the minimal information you provided below, I will venture a guess however :
It may be that when users access your application from the Internet, this goes through a
front-end proxy server before reaching your webserver. And that it is this proxy which
does not forward the calls correctly. So it is probably the proxy server people you would
need to talk to first.
>
> On Mon, May 9, 2016 at 11:37 AM, Andr� Warnier (tomcat) <aw...@ice-sa.com>
> wrote:
>
>> On 09.05.2016 17:11, Temp Temp wrote:
>>
>>> Hi All
>>>
>>> Need help to trace how the redirect is happening
>>>
>>> We have some static pages and dynamic pages (Using Python) and we are
>>> using
>>> apache 2.2.15 (Unix Environment).
>>>
>>
>> Then you are asking for help on the wrong list. This one is for Apache
>> Tomcat, which is the Java Servlet Engine.
>> The list you want can probably be found here :
>> http://httpd.apache.org/lists.html
>>
>>
>>> We have a URL to edit product details. When this URL is used in the
>>> intranet it is displaying the product details When the same URL is used on
>>> Internet, It is redirecting to home page. Not sure where this redirect is
>>> happening.
>>>
>>>
>> But with a description like the above, I am not sure that anyone would be
>> able to help you. You would have first to provide some description of your
>> network for instance.
>> When Internet users want to access your website, which server/proxy are
>> they connecting with ?
>> (I mean this as a question to answer on the http list, so that they can
>> help you further).
>> And you might also want to provide a copy of your Apache httpd
>> configuration (after removing any sensitive information). And be a bit more
>> precise than just "Unix environment".
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache redirect
Posted by Temp Temp <da...@gmail.com>.
Thanks Andre. Will do
On Mon, May 9, 2016 at 11:37 AM, André Warnier (tomcat) <aw...@ice-sa.com>
wrote:
> On 09.05.2016 17:11, Temp Temp wrote:
>
>> Hi All
>>
>> Need help to trace how the redirect is happening
>>
>> We have some static pages and dynamic pages (Using Python) and we are
>> using
>> apache 2.2.15 (Unix Environment).
>>
>
> Then you are asking for help on the wrong list. This one is for Apache
> Tomcat, which is the Java Servlet Engine.
> The list you want can probably be found here :
> http://httpd.apache.org/lists.html
>
>
>> We have a URL to edit product details. When this URL is used in the
>> intranet it is displaying the product details When the same URL is used on
>> Internet, It is redirecting to home page. Not sure where this redirect is
>> happening.
>>
>>
> But with a description like the above, I am not sure that anyone would be
> able to help you. You would have first to provide some description of your
> network for instance.
> When Internet users want to access your website, which server/proxy are
> they connecting with ?
> (I mean this as a question to answer on the http list, so that they can
> help you further).
> And you might also want to provide a copy of your Apache httpd
> configuration (after removing any sensitive information). And be a bit more
> precise than just "Unix environment".
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Apache redirect
Posted by "André Warnier (tomcat)" <aw...@ice-sa.com>.
On 09.05.2016 17:11, Temp Temp wrote:
> Hi All
>
> Need help to trace how the redirect is happening
>
> We have some static pages and dynamic pages (Using Python) and we are using
> apache 2.2.15 (Unix Environment).
Then you are asking for help on the wrong list. This one is for Apache Tomcat, which is
the Java Servlet Engine.
The list you want can probably be found here : http://httpd.apache.org/lists.html
>
> We have a URL to edit product details. When this URL is used in the
> intranet it is displaying the product details When the same URL is used on
> Internet, It is redirecting to home page. Not sure where this redirect is
> happening.
>
But with a description like the above, I am not sure that anyone would be able to help
you. You would have first to provide some description of your network for instance.
When Internet users want to access your website, which server/proxy are they connecting with ?
(I mean this as a question to answer on the http list, so that they can help you further).
And you might also want to provide a copy of your Apache httpd configuration (after
removing any sensitive information). And be a bit more precise than just "Unix environment".
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org