[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Domain personal directory "xyz.com/personal" (can it be changed?)
- Subject: Re: [cobalt-users] Domain personal directory "xyz.com/personal" (can it be changed?)
- From: Duncan Laurie <duncan@xxxxxxxxxx>
- Date: Thu Jan 27 17:30:13 2000
- Organization: Cobalt Networks
Hi Craig,
the changes can be done by adding a rewriterule inside the specific
<VirtualHost> block in /etc/httpd/conf/httpd.conf. the lines to add are:
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/personal/(.*) /home/sites/www.xyz.com/web/personal/$1
[L]
substitute the actual virtual site name for "www.xyz.com" in the above example.
and it would go just above the line that reads "RewriteOptions Inherit" so that
it takes precedence over the default rules that change /personal into the user
account management screen.
then the url "http://www.xyz.com/personal/" would be directed to the "personal"
directory for that virtual site. this still allows the account management
screen to be accessed by going to the url "http://www.domain.com/personal"
(note the lack of a trailing /). if you want even those requests to be sent
change the RewriteRule to read:
RewriteRule ^/personal/?(.*) /home/sites/www.xyz.com/web/personal/$1
[L]
if you still want access to the account management screen add another rule:
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/.personal/?$ http://www.xyz.com:81/.cobalt/personal/index.html
[L,R]
and then you can access it with "http://www.xyz.com/.personal"
-duncan
Craig N wrote:
>
> Hi Everyone,
>
> I ran into my first glitch tonight while trying to add a new domain/user to
> our RaQ3i regarding the "xyz.com/personal" directory setup by default. The
> domain being added has a directory as "xyz.com/personal" and is a directory
> that has been highly published on the net for several years. When the new
> user loaded her site (with the /personal directory intact) - viewers
> accessing her domain via the numerous links around the net are ending up in
> her Cobalt "personal" account management (control panel) screen. This is a
> *major* problem as there's *no* way possible for her to go and change all
> the hundreds of links around the world that's pointing to this directory
> (for 3-4 years now). How (where) can we make changes to this one user's
> configuration files so that when a user visits xyz.com/personal - they're
> not ending up where they have no business. We've had to completely remove
> this domain until we can find a resolution to this problem. Any input would
> be greatly appreciated.
>
> Best Regards,
> Craig Napier
>