hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.
Forum Jump

AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-19-2003, 04:19 AM
Nology Nology is offline
Junior Guru Wannabe
 
Join Date: Jan 2003
Posts: 70

AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3


Anyone managed to get this to work on a RaQ 550 after adding it to httpd.conf?

AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3

All I get is either a 'File Not Found' or 'Forbidden' when I go to:
http://www.mydomain.com/sites/www.clientdomain.com

Any ideas?

Reply With Quote


Sponsored Links
  #2  
Old 06-20-2003, 12:19 AM
mlegler mlegler is offline
Junior Guru Wannabe
 
Join Date: Feb 2003
Location: Zürich
Posts: 36
this won't ever work, I guess, because you're trying to walk outside (above) the DocumentRoot of mydomain.com, /home/sites/www.clientdomain.com isn't underneath /home/sites/site[#ofmydomain.com]/web

Best regards

__________________
_~_
'¿') Meaulnes Legler
`-´ Zürich, Switzerland
http://WaveWeb.ch


Reply With Quote
  #3  
Old 06-20-2003, 12:26 AM
Nology Nology is offline
Junior Guru Wannabe
 
Join Date: Jan 2003
Posts: 70
mlegler, sorry, bit confused by that response. I have seen other threads here that have had success with it, however they have been on RaQ 3 & 4's.

Any suggestions on how to get it working on a RaQ 550?

Reply With Quote
Sponsored Links
  #4  
Old 11-28-2005, 10:26 PM
mfalcon mfalcon is offline
New Member
 
Join Date: Nov 2005
Posts: 2
Has anyone come up with a solution to get the Aliasmatch working on a RaQ550? This is an extremely useful feature!

Thanks,
/\/\att

Reply With Quote
  #5  
Old 11-29-2005, 08:48 PM
BruceT BruceT is offline
Web Hosting Master
 
Join Date: Nov 2002
Location: Michigan
Posts: 695
You need to look at where the actual site web directories are located on the 550.

There are symlinks at /home/sites/www.example.com to /home/.sites/nnn/siteyyy but I'm guessing that Apache doesn't like the fact that they are symlinks which point to /home/.sites/nnn/siteyyy (where nnn and yyy are "random" numbers). The /home/sites links are only there to ease transition from the RaQ 3/4 way of dealing with sites to the RaQ 550 way.

__________________
http://www.lamphowto.com/ - LAMP and LAMP+SSL HowTo
http://www.cobaltfaqs.com/ - Cobalt FAQs and HowTos

Reply With Quote
  #6  
Old 12-01-2005, 11:22 PM
mfalcon mfalcon is offline
New Member
 
Join Date: Nov 2005
Posts: 2
BruceT
Yes, I've seen the directory structure and noticed the random site numbers. I guess it's a protection not allowing Apache access to the filesystem directly. What about a interim perl/php script that translates the domainname -> site# for Apache to 'read'? Any takers on this - is it possible? Maybe via a password protected script?

Thanks -
/\/\att

Reply With Quote
  #7  
Old 12-01-2005, 11:30 PM
BruceT BruceT is offline
Web Hosting Master
 
Join Date: Nov 2002
Location: Michigan
Posts: 695
Actually, Apache can access the files directly. That's how it serves the actual content.

What I was referring to was the symlinks themselves. There are options you can put into httpd.conf or .htaccess files to permit Apache to follow symlinks; it's generally not recommended though, as a bad guy could set up a symlink to something secret like /etc/passwd and Apache would blindly follow it.

I'm guessing you're trying to make domains visible that don't have DNS propogation completed yet...?

There should be a way to do it, especially as you can add Perl into the httpd.conf file if needed (although it can get a bit ugly if you're not careful) to look up the corresponding "real" path to the site indicated by the symlink... I don't have enough time in my schedule to tackle it myself directly though; sorry.

__________________
http://www.lamphowto.com/ - LAMP and LAMP+SSL HowTo
http://www.cobaltfaqs.com/ - Cobalt FAQs and HowTos

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Apache Loses 9.9 Million Sites in Netcraft April 2013 Web Server Survey Web Hosting News 2013-04-03 14:42:33
Rogue Antivirus Campaign Tricks WordPress Users, Infects 30,000 Sites Web Hosting News 2012-03-08 12:10:48
Apache Leads Site Gains in January Netcraft Web Server Survey Web Hosting News 2012-01-03 19:02:26
Apache Gains Most Sites in November Netcraft Web Server Survey Web Hosting News 2011-11-08 21:55:29
Netcraft Web Server Survey Finds Large Growth of Amazon EC2 Sites Web Hosting News 2011-08-05 19:02:44


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?