Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2012, 09:28 AM   PM User | #1
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
Apache vhosts is not dealing with ServerAlias full URL redirection

I have a redirect setup at a domain level where I forward traffic from www.crmpicco.co.uk to www.crmpicco.com.

I have re-encountered an issue where I can not browse to www.crmpicco.co.uk/ibrox and have that forwarded to www.crmpicco.com/ibrox.

This is the entry from my VHosts - is there anything wrong with it and is there anywhere else that I need to check the setup to ensure Apache is configured to handle the forwarding?

I have had confirmation from the people maintaining the domain that they don't deal with anything after the first /.
PHP Code:
<VirtualHost 172.26.x.x:80>
        
DocumentRoot "/var/www/vhosts/live_crmpicco/"
        
ServerName [url]www.crmpicco.com[/url]
        
ServerAlias crmpicco.com
        ServerAlias mobile
.crmpicco.com
        ServerAlias 
[url]www.crmpicco.co.uk[/url]
        
ServerAlias crmpicco.co.uk
        ErrorLog logs
/www.crmpicco.com_error_log
        CustomLog logs
/www.crmpicco.com_access_log combined
        LogLevel warn
        
<Directory "/var/www/vhosts/live_crmpicco/cgi-bin">
                
AllowOverride All
                Options ExecCGI
                AddHandler cgi
-script   .cgi   .pl
        
</Directory>
        <
Directory "/var/www/vhosts/live_crmpicco/">
                
AllowOverride All
        allow from all
        Options 
-Indexes
        
</Directory>
</
VirtualHost
Cheers,
Picco
crmpicco is offline   Reply With Quote
Reply

Bookmarks

Tags
apache, redirection, url

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:00 AM.


Advertisement
Log in to turn off these ads.