On Mon, 3 Nov 2008 13:04:32 +1000
Stephen Brennan [EMAIL PROTECTED] wrote:
Hi all,
I am trying to figure out how to configure appache webserver to set
different UNIX environment variables depending on the url text
entered.
RewriteRule.
Capture the path component you want, and use it with
=Config:B
Cheers
Stephen
-Original Message-
From: Nick Kew [mailto:[EMAIL PROTECTED]
Sent: Monday, 3 November 2008 8:25 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Apache - URL based environment variables
On Mon, 3 Nov 2008 13:04:32 +1000
Stephen Brennan [EMAIL PROTECTED
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] Apache - URL based environment variables
Nick,
Thank you. Is this the best way to achieve this? Ie. I am sure that I
have managed to do this before with Location directives. Has this
changed?
Would this be the correct syntax for my example
Hi all,
I am trying to figure out how to configure appache webserver to set
different UNIX environment variables depending on the url text entered.
eg.
base url/A
would be required to set an enviroment variable Config=A
and
base url/B
would be required to set an environment variable Config=B
So we are running into a tricky URL rewriting situation and were not
even sure Apache can do it. We have jim.domain.com and we want it to
pull from www.otherdomain.com/users/jim without changing domain.com to
otherdomain.com, so URL masking basically but across domains.
Regards,
Ryan Klein
On Fri, Sep 26, 2008 at 3:55 PM, Ryan Klein [EMAIL PROTECTED] wrote:
So we are running into a tricky URL rewriting situation and were not even
sure Apache can do it. We have jim.domain.com and we want it to pull from
www.otherdomain.com/users/jim without changing domain.com to
otherdomain.com,
Y wrote:
André,
thank you for pointing me in the right direction. The problem was that
my ip address is pointing to a different name on the local dns server of
my provider. The behaviour is correct when I use that name instead.
Would URL rewritting be the way to go to temporarly correct this
Luc Landreville wrote:
Greetings;
I host a website using apache on CentOS Linux. I am experiencing the fllowing
problem:
Any file name added after the domain name in the address field of a browser is
ignored and the site's home page is displayed:
If I type
André,
thank you for pointing me in the right direction. The problem was that my ip
address is pointing to a different name on the local dns server of my
provider. The behaviour is correct when I use that name instead. Would URL
rewritting be the way to go to temporarly correct this (before
Greetings;
I host a website using apache on CentOS Linux. I am experiencing the fllowing
problem:
Any file name added after the domain name in the address field of a browser is
ignored and the site's home page is displayed:
If I type http://www.mydomain.com/pt/index.html , apache will
Hi Matus,
thaznks for your answer. I've try to use :
RedirectMatch /.* http://www.mydomain.com
Unfortunately, I'm still getting redirect with the arguments I pass in
the URL.
Thanks,
Matus UHLAR - fantomas wrote:
On 30.06.08 14:29, Sylvain Viollat wrote:
Thanks for your answer. I've try
Hi!
thaznks for your answer. I've try to use :
RedirectMatch /.* http://www.mydomain.com
Unfortunately, I'm still getting redirect with the arguments I pass in
the URL.
How about using RewriteRule (mod_rewrite) like the following:
RewriteEngine On
RewriteRule ^/.*$
Hi Severin
thanks for your answer, but I'm still getting arguments in the URL when
redirect is done. Unfortunately I'm not that good at mod_rewrite...
Sylvain
Severin Gehwolf wrote:
Hi!
thaznks for your answer. I've try to use :
RedirectMatch /.* http://www.mydomain.com
Unfortunately,
On 30.06.08 14:29, Sylvain Viollat wrote:
Thanks for your answer. I've try to use Redirect instead of
RedirectMatch but result is the same. I'm still getting redirect with
the end of the URL.
RedirectMatch permanent / http://www.mydomain.com
The problem is that all queries which contain
Hello,
anyone got an idea about how to do this ?
Thanks
---BeginMessage---
Hi,
I need to redirect the URL http://www.mydomain.net/index.php?ref=10 to
http://www.mydomain.com/. I've added the following line in
www.mydomain.net VirtualHost :
RedirectMatch permanent /
On Mon, Jun 30, 2008 at 4:46 AM, Sylvain Viollat [EMAIL PROTECTED] wrote:
RedirectMatch permanent / http://www.mydomain.com
The problem is that all queries which contain something after the .net/ (eg.
index.php?ref=10), are redirect to http://www.mydomain.com/ref=10
If you use RedirectMatch,
Thanks for your answer. I've try to use Redirect instead of
RedirectMatch but result is the same. I'm still getting redirect with
the end of the URL.
Eric Covener wrote:
On Mon, Jun 30, 2008 at 4:46 AM, Sylvain Viollat [EMAIL PROTECTED] wrote:
RedirectMatch permanent /
Hi,
I need to redirect the URL http://www.mydomain.net/index.php?ref=10 to
http://www.mydomain.com/. I've added the following line in
www.mydomain.net VirtualHost :
RedirectMatch permanent / http://www.mydomain.com
The problem is that all queries which contain something after the .net/
I solved the problem.
I have in the .htaccess file in the root directory (../public_html/)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainA.comt$
RewriteRule ^(.*)$ /home/user/public_html/siteA/$1
but then in the /siteA subdirectory, I now have another .htaccess file with
only:
Hey Hank,
What do you mean by silent redirect?
Christian
Von: Hank [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 21. April 2008 01:43
An: users@httpd.apache.org
Betreff: [EMAIL PROTECTED] silent URL redirect/cloak with mod_rewrite
Hello All,
I've tried
From: Hank [mailto:[EMAIL PROTECTED]
Sent: Monday, April 21, 2008 1:43 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] silent URL redirect/cloak with
mod_rewrite
Hello All,
I've
On Mon, Apr 21, 2008 at 1:42 AM, Hank [EMAIL PROTECTED] wrote:
I have found several ways to non-silently redirect http://domainA.com to
http://basedomain/siteA, but that's not good enough. It needs to be a
silent re-direct.
As someone else allready pointed out: There is no such thing as a
n Mon, Apr 21, 2008 at 3:04 AM, Boyle Owen [EMAIL PROTECTED] wrote:
--
understand you correctly, you have registered domainA and domainB and the
domain names point to your server's IP in DNS. You want to map domainA to
../siteA and domainB to ../siteB. You
On Mon, Apr 21, 2008 at 10:04 AM, Hank [EMAIL PROTECTED] wrote:
n Mon, Apr 21, 2008 at 3:04 AM, Boyle Owen [EMAIL PROTECTED] wrote:
understand you correctly, you have registered domainA and domainB and the
domain names point to your server's IP in DNS. You want to map domainA to
../siteA
If the content is living on the same server as domainA.com (which it
apparently is in this case), then you don't want to proxy. There is no
need to create an additional HTTP request. You just instruct apache to
grab the file directly. So you want something like
RewriteCond %{HTTP_HOST}
Hello All,
I've tried about 100 combinations and searched google over and over, but I
can't find nor figure out how to do this simple task.
I have one webserver with sites at:
/home/user/public_html/ ( http://basedomain.com site points here)
/home/user/public_html/siteA
-Original Message-
From: Rocco Scappatura [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 01, 2007 10:38 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Rewriting URL inside a 'proxyed' page
Hello,
I have a Tomcat webapp which is surfed from Internet using
I have a Tomcat webapp which is surfed from Internet using
a reverse
proxy (or better, my idea is).
To be practical, say that:
http://www.exaple.com/site/ --
http://localhost:8081/webapp/app/site/
Unfortunately, when I get the home page
-Original Message-
From: Rocco Scappatura [mailto:[EMAIL PROTECTED]
Sent: Monday, December 03, 2007 12:38 PM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] Rewriting URL inside a 'proxyed'
page (SOLVED)
I have a Tomcat webapp which is surfed from Internet using
I have a Tomcat webapp which is surfed from Internet using
a reverse
proxy (or better, my idea is).
To be practical, say that:
http://www.exaple.com/site/ --
http://localhost:8081/webapp/app/site/
Unfortunately, when I get the home page
Hello,
I have a Tomcat webapp which is surfed from Internet using a reverse proxy
(or better, my idea is).
To be practical, say that:
http://www.exaple.com/site/ -- http://localhost:8081/webapp/app/site/
Unfortunately, when I get the home page
(http://www.exaple.com/site/index.html)
Hi All !
I have stuck up due my .htaccess file.
---here in my .htaccess file -
Options +FollowSymLinks
RewriteEngine On
# REDIRECTION FROM NONSECURE TO SECURE #
RewriteCond
On Nov 7, 2007 6:49 AM, pinky goyal [EMAIL PROTECTED] wrote:
Hi All !
I have stuck up due my .htaccess file.
---here in my .htaccess file -
Options +FollowSymLinks
RewriteEngine On
# REDIRECTION FROM NONSECURE TO
You are right Krist;
our network administrator had made a mistake in configuring DNS settings
for our server.
Thanks.
Krist van Besien wrote:
On 5/6/07, akhayyami [EMAIL PROTECTED] wrote:
I have a problem with one of my servers; When I enter
http://www.myserver.com in address bar (IE
Thanks Scott,
That did the trick.
Best,
Harry
Harry Spier
371 Brickman Rd.
Hurleyville, New York
USA 12747
From: Scott Gifford [EMAIL PROTECTED]
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Overriding url filename changing in Apache
Date
Dear list members,
I have a website on a shared hosting Apache Linux server.
On that server, Apache is set so that if a url is sent to a domain with a
file name that doesn't exist but another filename exists on that domain with
one letter different from the url, it changes the url to the
Harry Spier [EMAIL PROTECTED] writes:
I have a website on a shared hosting Apache Linux server.
[...]
I believe (but I'm not sure) that [...] mod-speling is enabled on
that Apache server. This is the default behaviior on the shared
hosting server and they wont change it.
I need to
On 5/6/07, akhayyami [EMAIL PROTECTED] wrote:
I have a problem with one of my servers; When I enter
http://www.myserver.com in address bar (IE Firefox), apache replaces the
server name (e.g. www.myserver.com) with an ip address. I tried with
without virtual hosts but no chance. I also tried
This may not help you, but NameVirtualHost 1.2.3.4 says that you want
to use that IP for name based virtual hosts. However, you've got a
Serveralias 1.2.3.4 which means that you want this IP also respond to
your VirtualHost (i.g. you are really trying to do a IP based
virtualhost). You don't
I have a problem with one of my servers; When I enter
http://www.myserver.com in address bar (IE Firefox), apache replaces the
server name (e.g. www.myserver.com) with an ip address. I tried with
without virtual hosts but no chance. I also tried UseCanonicalName with yes
no. How can I
On 4/17/07, Joshua Slive [EMAIL PROTECTED] wrote:
On 4/17/07, detlev von davidson [EMAIL PROTECTED] wrote:
sharath reddy wrote:
Hi all,
How can i map URL to a file system on remote box?
.. if my apache is running as www.example.com
http://www.example.com/test , then if i want to
On 4/18/07, sharath reddy [EMAIL PROTECTED] wrote:
I went through reverse proxy documentation, can i use this reverse proxy
solution, if i want to map URLs to remote file system which is not a
webserver
No.
Obviously there is no way to access a remote file system unless it is
somehow shared
Hi all,
How can i map URL to a file system on remote box?
.. if my apache is running as www.example.com
http://www.example.com/test, then if i want to serve content for
www.example.com/test from different box other than local server
Any suggestions?
On 4/17/07, detlev von davidson [EMAIL PROTECTED] wrote:
sharath reddy wrote:
Hi all,
How can i map URL to a file system on remote box?
.. if my apache is running as www.example.com
http://www.example.com/test , then if i want to serve content for
www.example.com/test
Dear all,
I have a virtual host like this:
VirtualHost *:
RewriteEngine on
RewriteCond %{SERVER_PORT} ^$
RewriteCond %{HTTP_HOST} ^xn--eqrt2guv0afw3b\.hk$
RewriteRule ^/(.*) http://testwww.hkdnr.hk/$1 [L,R]
DocumentRoot /www/srs/registrant
ServerName
On Mon, 27 Nov 2006 17:17:22 +0800
Jacky [EMAIL PROTECTED] wrote:
VirtualHost *:
ServerName testwww.hkdnr.hk
/VirtualHost
I'm wondering why it does not rewrite to http://testwww.hkdnr.hk when
i browse to http://xn--eqrt2guv0afw3b.hk:/
It's a virtual host for something else.
Hi all ,
Reverse Proxying is working fine on our DMZ Apache
(2.0.59) for various URLs / internal sites including
those with a ! special character in them . However 1
internal site returns a long (50 character) string
with ! = ~ special characters and always gives a proxy
error .
I've tried
-Original Message-
From: Dougie [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 7:11 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Redirecting URL
Hi all,
Fairly new to Apache. Trying to do something pretty simple, but
have no clue what to do
@httpd.apache.org
Subject: [EMAIL PROTECTED] Redirecting URL
Hi all,
Fairly new to Apache. Trying to do something pretty simple, but
have no clue what to do.
I have a java server (that is using Jetty, internally) on my
machine. The server name is located on port 9090. I would have just
-Original Message-
From: Dougie [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 12:10 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Redirecting URL
Thanks Boyle!
A proxy is exactly what I want to do! I'll try it and
see what I can
come up
Hi all,
Fairly new to Apache. Trying to do something pretty simple, but
have no clue what to do.
I have a java server (that is using Jetty, internally) on my
machine. The server name is located on port 9090. I would have just
installed Apache on this same machine at port 80. If I
@httpd.apache.org
A
users@httpd.apache.org
cc
Objet
Re: [EMAIL PROTECTED] redirection url
On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi,
i try to precise the descriptiopn
It's not for internet accessibility but only on the enterprise, so
:
i've a reporting intranet
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 9:05 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] redirection url
I test
ProxyPass / http://serveur1:8085/uri/
ProxyPassReverse / http://serveur1:8085/uri
cc
Objet
RE: [EMAIL PROTECTED] redirection url
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 9:05 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] redirection url
I test
ProxyPass / http://serveur1:8085
1:8085/uri//VirtualHostthanks "Boyle Owen" [EMAIL PROTECTED] 24/07/2006 09:19Veuillez répondre à users@httpd.apache.orgA users@httpd.apache.org cc Objet RE: [EMAIL PROTECTED] redirection url
-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 1:31 PM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] redirection url
Hi owen,
Thanks for information but i had already configure a DNS entry :
create an alias
Veuillez répondre à
users@httpd.apache.org
A
users@httpd.apache.org
cc
Objet
Re: [EMAIL PROTECTED] redirection url
On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi,
I've an accesisble url :
http://serveur.domain.com:port/uri/
I would like to know how can i redirect
On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
i try to precise the descriptiopn
It's not for internet accessibility but only on the enterprise, so :
i've a reporting intranet, accessible by the url :
http://serveur1:8085/uri/ (accessibly only on the enterprise)
I would like
Hi All,I want to redirect any page, say http://www.somedomain.com/foo/bar/test.html to http://www.otherdomain.com/foo/bar/test.html , except on a condition that www.somedomain.com/cgi-bin/home.cgi should fetch the page from local server's cgi-bin path...RedirectMatch ^(.*)\.*$
You can try a neg. lookahead with Apache 2.x
RedirectMatch ^/(?!cgi-bin)(.*)$ http://www.somedomain.com/us/company/en/$1
--
Robert
-
The official User-To-User support forum of the Apache HTTP Server Project.
See
Hello everyone!
here's my problem (a very simple one ;); I've been trying to redirect my home page
(http://168.243.x.x/index.html) to a secure one in the same server ip:
https://168.243.x.x/apps/servlets/IndexServlet
both URL works fine separated, I tried the REDIRECT directive in the
On 2/7/06, Ricardo Gamero [EMAIL PROTECTED] wrote:
Hello everyone!
here's my problem (a very simple one ;); I've been trying to redirect my
home page (http://168.243.x.x/index.html) to a secure one in the same server
ip: https://168.243.x.x/apps/servlets/IndexServlet
both URL works fine
Jacob Eshed wrote:
Hi,
A plus sign (+) in a url is converted to space (%20).
Yup, that's what the HTTP/1.0 (and 1.1) rules are for URI's.
'sub_cat=Art + Design' is converted to 'sub_cat=Art%20+%20Design' by
the browser but the apache output received is 'sub_cat=Art%20%20%20Design'
That's
Title: RE: [EMAIL PROTECTED] + in URL
Hi Bill,
Thanks for your prompt answer.
The 'sub_cat=Art + Design' was entered as parameter in Microsoft Internet Browser 6. as a url address:
http://server.name:port/V/?func=some_functionmode=categorycategory=Category Namesub_cat=Art + Designrestricted
Jacob Eshed wrote:
Hi Bill,
Thanks for your prompt answer.
The 'sub_cat=Art + Design' was entered as parameter in Microsoft
Internet Browser 6. as a url address:
_http://server.name:port/V/?func=some_functionmode=categorycategory=Category
Namesub_cat=Art + Designrestricted=all_
Title: RE: [EMAIL PROTECTED] + in URL
Hi Bill,
Thank you very much for your brief and helpful explanation.
Sincerely,
Jacob Eshed
-Original Message-
From: William A. Rowe, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 21, 2005 6:35 AM
To: users@httpd.apache.org
Subject
Hi, I'm getting some 404s the reason for which are unclear
my httpd.conf is set with ServerRoot to C:/Programmer/Apache Group/Apache2
and Listen to 3080
If I run http://localhost:3080/ it works
if I run http://localhost:3080/manual it works
if I create a new html file in the manual folder and
-Original Message-
From: bryan rasmussen [mailto:[EMAIL PROTECTED]
Sent: Montag, 10. Oktober 2005 10:55
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] requested url not found on server,
Apache/2.0.54
(Win32) Server at localhost Port 3080?
Hi, I'm getting some 404s
PROTECTED] requested url not found on server,
Apache/2.0.54
(Win32) Server at localhost Port 3080?
Hi, I'm getting some 404s the reason for which are unclear
my httpd.conf is set with ServerRoot to
C:/Programmer/Apache Group/Apache2
and Listen to 3080
If I run http://localhost
PROTECTED] requested url not found on server,
Apache/2.0.54
(Win32) Server at localhost Port 3080?
Hi, I'm getting some 404s the reason for which are unclear
my httpd.conf is set with ServerRoot to
C:/Programmer/Apache Group/Apache2
and Listen to 3080
If I run http://localhost
@httpd.apache.org
Subject: [EMAIL PROTECTED] % mod_proxy URL issue
Is it possible to have a mod_rewrite rule which will rewrite a % with a %25?
Below is a hack for Outlook Web Access which, when reverse-proxied, apache2
chokes on when a % is in a subject of an email (and thus in the URL) unless
Thanks ascs,
This works perfectly:
#OWA % character in email subject fix
RewriteEngine On
RewriteMap percentsubject int:escape
RewriteCond $1 ^/exchange/.*\%.*$
RewriteRule (/exchange/.*) ${percentsubject:$1} [P]
I've added it to:
http://www-personal.umich.edu/~malth/gaptuning/apache/
---
Is it possible to have a mod_rewrite rule which will rewrite a % with a
%25? Below is a hack for Outlook Web Access which, when
reverse-proxied, apache2 chokes on when a % is in a subject of an email
(and thus in the URL) unless the following is done.
Chris
Insert this right before your
73 matches
Mail list logo