[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Front Page and New Sites



On Wed, 24 May 2000, Scott wrote:
> Sorry for the new thread on the same subject, I accidently deleted the old
> one.
> 
> 
> RewriteRule ^/domain/([^/]+)/?(.*)$     /home/sites/$1/web/$2

Because for it to work, the server would have to be willing to follow
symlinks not owned by the site...might work if you used siteXX/something

I really wouldn't recommend enabling Followsymlinks serverwide, it inda
open up security holes -/

Maybe try this set instead...

RewriteRule ^/Preview/www\.([^/]+)$  /Preview/www.$1/ [L,R]
RewriteRule ^/Preview/www\.([^/]+)(/(.*))? http://www.$1/$3 [P]

Note: this uses proxy, it will access domains NOT on your server as
well...(there is a way to fix this in the apache config somewhere)

> 
> You can then access your new domain like:
> 
> http://www.myserver.com/domain/www.new_site.com/
> 
> Trouble is, it doesn't work. I get the following:
> 
> Forbidden
> You do not have permission to access
> the requested file on this server.
> 
> Thoughts?
> 
> Scott
> -- 
> Scott Crumpton, Publisher                   Moriah Mountain Publishing
> mailto:scott@xxxxxxxxxx                         http://www.moriah.com/
> 
> "With God, All Things Are Possible. Without God, Nothing Is Possible."
> 
> 
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
> 
>