
-----------------------------------
Amailer
Thu Aug 28, 2003 11:14 am

Making a subdomain.
-----------------------------------
Ok, now.
Suppose i have a file called info.php in a folder called 'info'.

Now when i type the url.

info.mydomain.com
It displays the information from the info file in the folder info.

How can i do that?
I tried include....but with include it takes it asif the file is in the same folder the 'include script' is in.

So the images which are in the 'info.php' file, won't show up.
Hope i made some sense :?

err what im trying to do is: http://forum.termix-zero.ath.cx/
check the links...where the phpbb files are really keeped are: http://termix-zero.ath.cx/termix/forum/

-----------------------------------
octopi
Thu Aug 28, 2003 12:44 pm


-----------------------------------
How have you set up your sub domain?

If forum..... points to the same directory as the other location, then there shouldn't be a problem.

What method are you using for your subdomains?

-----------------------------------
Amailer
Thu Aug 28, 2003 12:56 pm


-----------------------------------
No method, i need 1.
The index.php (where the include line is in) is in the same dir as the folder termix (in the termix folder there is the forum folder)

-----------------------------------
Blade
Thu Aug 28, 2003 2:40 pm


-----------------------------------
okay. if you are using your own server.. add this to your httpd.conf

LoadModule vhost_alias_module modules/mod_vhost_alias.so 
UseCanonicalName Off 
VirtualDocumentRoot "C:/path/to/docs/%1" 

also... since i use blademan.no-ip.com my server trys to find a blademan folder.. or if i use its compname it'll try to find a folder called my compname, and same with localhost.. so you'll have to have folders for these. in unix its easy because you can link folders, but in windows you cant.

-----------------------------------
Amailer
Thu Aug 28, 2003 4:53 pm


-----------------------------------
Ok, so my domain is termix-zero... i have to have a folder called 'termix-zero'?

err dammit gatta change alot of stuff :?

-----------------------------------
octopi
Thu Aug 28, 2003 5:03 pm


-----------------------------------
You might find it easier, to just set up a single virtual domain name.

You wouldn't have to change anything....but each  something.domainname.com  would have to be listed.

-----------------------------------
Amailer
Thu Aug 28, 2003 5:10 pm


-----------------------------------
Oh ok good, ahh ill do that :D

-----------------------------------
octopi
Thu Aug 28, 2003 5:23 pm


-----------------------------------
Do you know how?, cause if not, I don't mind you asking me, or msn'ing me.

-----------------------------------
Amailer
Fri Aug 29, 2003 11:08 am


-----------------------------------
got msn? tell me it
second,
where do i put

LoadModule vhost_alias_module modules/mod_vhost_alias.so
UseCanonicalName Off
VirtualDocumentRoot "C:/path/to/docs/%1"
 
in my httd? (thats where in the httd)
C:/path/to/docs/%1  --- path to the www htdocs right?

EDIT: OK, i have no clue what im doing here!
HELP!!!
MSN!
(in my profile add me)

-----------------------------------
octopi
Fri Aug 29, 2003 12:28 pm


-----------------------------------
You put that in the httpd.conf file
Somewhere near the end is good.

/path/to

is the folder that contains
www, info
folders.

Using virtual servers is a MUCH better idea for you.

I added you to my list.

-----------------------------------
Amailer
Fri Aug 29, 2003 12:56 pm


-----------------------------------
Thanks :D

-----------------------------------
Amailer
Thu Nov 13, 2003 8:39 pm

Does it slow it down?
-----------------------------------
If i have over 3 or 2, does it slow down my apache/computer?:



     DocumentRoot "BHA\BAH"
     ServerName bah.myserver.bah


(2 or 3 of the above code in my httpd config)
