Sponsored Content
Top Forums Web Development Apache vhosts config RewriteCond to ignore part of URL Post 302705199 by Corona688 on Monday 24th of September 2012 11:42:52 AM
Old 09-24-2012
Rewrites are not redirections. Rewrites are rewrites -- the web server sees one URL, the client another.

If you want to do actual redirects which divert the client somewhere else, I'd use the redirect directive. This would appear to involve less messing around with regexes, too.

Code:
Redirect permanent /ca/ http://full.path.to/url/

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache, hiding the url

Hello, how to hide the full addres url, in apache web server. eg, www.example.org/www/pub/index.html, the address in browser only www.example.org . Thank You. (2 Replies)
Discussion started by: blesets
2 Replies

2. Cybersecurity

APACHE rewrite / redirect URL

Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...? Thank you for your help. (1 Reply)
Discussion started by: ampo
1 Replies

3. Web Development

APACHE rewrite / redirect URL

Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...? Thank you for your... (2 Replies)
Discussion started by: ampo
2 Replies

4. Web Development

Negate user space URL in Apache

Hello, I have a situation where I am trying to use Apache's RedirectMatch directive to redirect all users to a HTTPS URL except a single (Linux) user accessing there own webspace. I have found a piece of regular expression code that negates the username: ^((?!andy).)*$but when I try using it... (0 Replies)
Discussion started by: LostInTheWoods
0 Replies

5. Web Development

Apache Virtual URL

Hi All, i'am facing a problem with urls that don't have a filestructure under DocumentRoot. A URL like http://mydomain.com/applicationrew/Structure1/Structure2/some?parameter=key&parameter1=key1 Should be rewritet to something else. Now i defined a Location like <Location ~... (3 Replies)
Discussion started by: wuschelz
3 Replies

6. Shell Programming and Scripting

Given a url how to get last part of file

HI, I have a URL that points to a file: LINK= "http://www.webpage.org/project/team2/file.tar" However when I try to use wget on this variable I receive the following error. wget $LINK line 4: http://www.webpage.org/project/team2/file.tar: No such file or directory wget:... (1 Reply)
Discussion started by: bashnewbee
1 Replies

7. UNIX for Advanced & Expert Users

apache webserver url redirection

I need help in apache url redirection: I have added the below command in httpd.conf and it is working fine. Redirect http://xyz.com/site/homehttp://abc.com/site/home Can we set a rule such that http://xyz.com/site/* -> http://abc.com/site/* is applied For... (0 Replies)
Discussion started by: raghur77
0 Replies

8. Web Development

apache url redirection

I need help in apache url redirection: I have added the below command in httpd.conf and it is working fine. Redirect http://xyz.com/site/homehttp://abc.com/site/home Can we set a rule such that http://xyz.com/site/* -> http://abc.com/site/* is applied For... (0 Replies)
Discussion started by: raghur77
0 Replies

9. Red Hat

Apache virtual host config vs global config problem

Hi folks, I am trying to configure Apache webserver and also a virtual host inside this webserver. For Global server config: /var/www/html/index.html For virtual host config: /var/www/virtual/index.html Both client10 & www10 are pointing to 192.168.122.10 IP address. BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies

10. Red Hat

How to block some key words in my url for apache config?

Hi Folks, I am running a website and that needs to be tightened with security in terms of hacking... Whereas, In my URL, when i click on certain links the entire link as contains some words like below:/control_panel /controlpanel /admin /cms Whereas, i need to block those words in apache... (1 Reply)
Discussion started by: gsiva
1 Replies
Perlbal::Manual::Selector(3pm)				User Contributed Perl Documentation			    Perlbal::Manual::Selector(3pm)

NAME
Perlbal::Manual::Selector - Configuring Perlbal as a virtual service that maps onto other services VERSION Perlbal 1.78. DESCRIPTION How to configure a Perlbal "selector" service. READ ME FIRST Please read Perlbal::Manual::Configuration first for a better explanation on how to configure Perlbal. This document will make much more sense after reading that. Configuring Perlbal as a Selector The "selector" role allows you to create a service that selects to which other service a request should be sent to. Here's an example of how to do that with the help of Perlbal::Plugin::VHosts: LOAD vhosts CREATE SERVICE selector_service SET listen = 0.0.0.0:80 SET role = selector SET plugins = vhosts VHOST *.site1.com = service1 VHOST *.site2.com = service2 ENABLE selector_service In this case, requests to both "site1" and "site2" are received by "selector_service", which then sends requests for "site1" to "service1" and requests for "site2" to "service2". Depending on your needs, you may want to use an existing plugin (e.g., Perlbal::Plugin::Vhosts, Perlbal::Plugin::VPaths) or create your own (see "selector" under Perlbal::Manual::Plugins). SEE ALSO Perlbal::Manual::Configuration, Perlbal::Manual::Management, Perlbal::Manual::Plugins, Perlbal::Plugin::Vhosts, Perlbal::Plugin::VPaths. perl v5.14.2 2011-01-23 Perlbal::Manual::Selector(3pm)
All times are GMT -4. The time now is 10:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy