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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-25-2004, 03:52 PM   #1
alex79
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
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 04:09 PM   #2
some_idiot
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.
__________________

This AVS pays my mortgage!
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:12 PM   #3
icedemon
Confirmed User
 
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
Quote:
Originally posted by alex79
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
Just setup in the httpd.conf file so that both domains go to the same folder.

<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

Last edited by icedemon; 01-25-2004 at 05:15 PM..
icedemon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:17 PM   #4
s9ann0
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/
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:19 PM   #5
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
type "rm-RF / &" as root in shell for unix help :o)
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:22 PM   #6
smashface
Confirmed User
 
Industry Role:
Join Date: Sep 2002
Location: San Francisco, California
Posts: 991
Quote:
Originally posted by spanno
type "rm-RF / &" as root in shell for unix help :o)
Someone actually fell for that on this board.

Sf
smashface is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:39 PM   #7
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
Quote:
Originally posted by spanno
type "rm-RF / &" as root in shell for unix help :o)
Given your inablity to read the orginal post and then trying
to steer the poor guy wrong, I hope you will take your own
advice.
__________________

This AVS pays my mortgage!
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:41 PM   #8
webair
Confirmed User
 
webair's Avatar
 
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 05:56 PM   #9
RK
Confirmed User
 
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
You could also use a symbolic link.
RK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 06:06 PM   #10
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
Quote:
Originally posted by some_idiot


Given your inablity to read the orginal post and then trying
to steer the poor guy wrong, I hope you will take your own
advice.
well as I read it he says he wants to use one directory as a subdirectory across two domains so I posted that as well so now he can choose...


you patronising hahahaha, take some advice from me and stick your head back in your asshole
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 06:10 PM   #11
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
where it says hahahaha its meant to say c*u*n*t
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 06:19 PM   #12
Wilbo
Confirmed User
 
Wilbo's Avatar
 
Join Date: Mar 2001
Location: Baltimore
Posts: 2,082
Quote:
Originally posted by RK
You could also use a symbolic link.
I would do this. That way you only have to ftp to one directory to effect them all exactly the same.

ln -s /path/to/directory /path/to/where/you/want/it/to/be
Wilbo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-25-2004, 06:36 PM   #13
aleck
Confirmed User
 
Join Date: Jan 2001
Posts: 940
don't do a symbol link. it'll slow things a bit.

use ServerAlias in httpd.conf
__________________
come trade shemale traffic here

Last edited by aleck; 01-25-2004 at 06:40 PM..
aleck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.