Jump to content


Can someone help me...


4 replies to this topic

#1 Pwnaga

    Young Padawan

  • Members
  • Pip
  • 6 posts
  • Gender:Male

Posted 10 March 2007 - 02:03 PM

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.

#2 _*Creative Insanity_*

  • Guests

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.

#3 LkuHomer

    Young Padawan

  • Members
  • Pip
  • 173 posts
  • Gender:Male
  • Location:Dela'where?

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 Pwnaga

    Young Padawan

  • Members
  • Pip
  • 6 posts
  • Gender:Male

Posted 13 March 2007 - 05:14 PM

Alright, thanks for the reply guys. You guys helped me quite a bit! :biggrin:

#5 LkuHomer

    Young Padawan

  • Members
  • Pip
  • 173 posts
  • Gender:Male
  • Location:Dela'where?

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