#1  
Old 6th October 2009, 09:28
andron26 andron26 is offline
Member
 
Join Date: Mar 2007
Posts: 52
Thanks: 6
Thanked 1 Time in 1 Post
Default Server alias without rewrite

Hello,

ISPC 2.2.33 on OpenSUSE 10.2.
There is domain www.aaa.com. I've created co-domain (server alias) www.bbb.com. Now www.bbb.com point to www.aaa.com context but rewrites domain to www.aaa.com. How to do this without rewriting?

Config:

<VirtualHost 1.1.1.1:80>
ServerName www.aaa.com:80
ServerAdmin webmaster@aaa.com
DocumentRoot /srv/www/webaaa/web
ServerAlias aaa.com bbb.com www.bbb.com
Alias /stats "/srv/www/webaaa/web/webalizer"
Alias /error/ "/srv/www/webaaa/web/error/"
ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/webaaa/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/webaaa/user/$1/web/$3 <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>

TIA

Last edited by andron26; 6th October 2009 at 09:32.
Reply With Quote
Sponsored Links
  #2  
Old 6th October 2009, 11:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,786
Thanks: 840
Thanked 5,611 Times in 4,422 Posts
 
Default

Just add the domain as co-domain and do not activate rewriting. The vhost above does not rewrite the domain, so the domain name does not change in the browser.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
andron26 (9th October 2009)
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Help! Why do I see message about Apache, CPanel & WHM. I don't run cpanel! websissy Installation/Configuration 3 18th November 2008 23:16
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 17:11
550-The recipient cannot be verified email problem safoo Installation/Configuration 7 29th November 2006 20:55
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 11:50


All times are GMT +2. The time now is 18:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.