Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making a subdomain.
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: Thu Aug 28, 2003 11:14 am   Post subject: 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 Confused

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/
Sponsor
Sponsor
Sponsor
sponsor
octopi




PostPosted: Thu Aug 28, 2003 12:44 pm   Post subject: (No subject)

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




PostPosted: Thu Aug 28, 2003 12:56 pm   Post subject: (No subject)

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




PostPosted: Thu Aug 28, 2003 2:40 pm   Post subject: (No subject)

okay. if you are using your own server.. add this to your httpd.conf

Quote:
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




PostPosted: Thu Aug 28, 2003 4:53 pm   Post subject: (No subject)

Ok, so my domain is termix-zero... i have to have a folder called 'termix-zero'?

err dammit gatta change alot of stuff Confused
octopi




PostPosted: Thu Aug 28, 2003 5:03 pm   Post subject: (No subject)

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




PostPosted: Thu Aug 28, 2003 5:10 pm   Post subject: (No subject)

Oh ok good, ahh ill do that Very Happy
octopi




PostPosted: Thu Aug 28, 2003 5:23 pm   Post subject: (No subject)

Do you know how?, cause if not, I don't mind you asking me, or msn'ing me.
Sponsor
Sponsor
Sponsor
sponsor
Amailer




PostPosted: Fri Aug 29, 2003 11:08 am   Post subject: (No subject)

got msn? tell me it
second,
where do i put
code:

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




PostPosted: Fri Aug 29, 2003 12:28 pm   Post subject: (No subject)

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




PostPosted: Fri Aug 29, 2003 12:56 pm   Post subject: (No subject)

Thanks Very Happy
Amailer




PostPosted: Thu Nov 13, 2003 8:39 pm   Post subject: Does it slow it down?

If i have over 3 or 2, does it slow down my apache/computer?:

code:

<VirtualHost *>
     DocumentRoot "BHA\BAH"
     ServerName bah.myserver.bah
</VirtualHost>

(2 or 3 of the above code in my httpd config)
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: