Alright, I'm building a rather big site with php, and I need to do something involving the URL.
How do you have it so the URL is something like this:
forums.domain-name.com
something.domain-name.com
Must I configure the httpd.conf file?
And, if so, how?
Thank-you.
Can someone help me...
Started by Pwnaga, Mar 10 2007 02:03 PM
4 replies to this topic
#1
Posted 10 March 2007 - 02:03 PM
#2 _*Creative Insanity_*
Posted 10 March 2007 - 02:16 PM
In the conf file you will see a line that is commented out
#ServerName your_domain.com:80
Uncomment that and enter the domain you want to use. You may also have to setup your DNS server to point to your servers IP address.
#ServerName your_domain.com:80
Uncomment that and enter the domain you want to use. You may also have to setup your DNS server to point to your servers IP address.
#3
Posted 12 March 2007 - 12:17 AM
VirtualHosts are the only way I know of.
# Use name-based virtual hosting. # NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot /www/docs/dummy-host.example.com ServerName dummy-host.example.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot /www/docs/forums.dummy-host.example.com ServerName forums.dummy-host.example.com ServerAlias *.dummy-host.example.com ErrorLog logs/forums.dummy-host.example.com-error_log CustomLog logs/forums.dummy-host.example.com-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot /www/docs/something.dummy-host.example.com ServerName something.dummy-host.example.com ServerAlias *.dummy-host.example.com ErrorLog logs/something.dummy-host.example.com-error_log CustomLog logs/something.dummy-host.example.com-access_log common </VirtualHost>
#4
Posted 13 March 2007 - 05:14 PM
Alright, thanks for the reply guys. You guys helped me quite a bit!
#5
Posted 13 March 2007 - 09:55 PM
By that I take it you got everything running, good to hear.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
