|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
server quick question
how can i use same folder to 2 or many domains?
for example i want use a single folder and domain1.com/folder/ and domain2.com/folder/ to display same folder content |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Either use ServerAlias or just setup duplicate VirtualHost entries.
|
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
|
Quote:
<VirtualHost 1.2.3.4:80> ServerName domain1.com DocumentRoot /home/folder/public_html ServerAlias *.domain1.com domain2.com *.domain2.com </VirtualHost> Or make two of the above but with each domain instead of the Sever Alias. Just have both domains use the same ip address. The same thing that "some_idiot" said.
__________________
Clips4Sale.com |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
the last two people told you how to make a site use the same direcotry I think you want to use the same dir over more than one domain so for that you use: Alias
look it up on the apache site in the <VirtualHost> for each domain add Alias /path/todir/ /dir/ /path/to/dir/ being where it is on disk and /dir/ being what directory you want it to show as on the web ie domain.com/dirname/ |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
type "rm-RF / &" as root in shell for unix help :o)
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Sep 2002
Location: San Francisco, California
Posts: 991
|
Quote:
Sf |
|
|
|
|
|
|
#7 | |
|
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
Quote:
to steer the poor guy wrong, I hope you will take your own advice. |
|
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Feb 2002
Location: NYC, NY
Posts: 8,531
|
alex
contact your host they should be able to set that up for you if they cant/dont then you should not be hostng there
__________________
![]() ~ Webair Dedicated Cloud Servers™ ~ WEBAIR VSYS™ Virtual Hosting Platform ~ Superior CDN Network ~ ~ Managed Dedicated hosting Specialists ~ DISCOUNT DOMAIN NAMES! ~ WEBAIR FUSION IO MANAGED CLOUD SERVERS! ~ ICQ: 243116321 - TWITTER - @WEBAIRINC - E-Mail: [email protected] |
|
|
|
|
|
#9 |
|
Confirmed User
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
|
You could also use a symbolic link.
|
|
|
|
|
|
#10 | |
|
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
Quote:
you patronising hahahaha, take some advice from me and stick your head back in your asshole |
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
where it says hahahaha its meant to say c*u*n*t
|
|
|
|
|
|
#12 | |
|
Confirmed User
Join Date: Mar 2001
Location: Baltimore
Posts: 2,082
|
Quote:
ln -s /path/to/directory /path/to/where/you/want/it/to/be |
|
|
|
|