LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /var/www domain name help (http://www.linuxquestions.org/questions/linux-newbie-8/var-www-domain-name-help-766920/)

illNino 11-04-2009 07:04 PM

/var/www domain name help
 
Hi all, stupid question, but I'm hosting a wiki on my ubuntu server and I got a domain name for it which I've port forwarded 80 to the ubuntu server which has the wiki site in /var/www. But when I access the site externally using the domain name all the categories on the left link to my private IP address. I can get to the main page, but the other links are http://192.168.x.x/index whatever.

How can I change that to the domain name instead.

Thanks in advance.

illNino 11-04-2009 11:21 PM

bump.

evo2 11-05-2009 12:28 AM

Stab in the dark here...

how about setting the ServerName variable in your hhtpd.conf?

Evo2.

illNino 11-05-2009 12:39 AM

Nothing is specified in that file... I think I have to do something with virtual hosts, but not 100% sure...

evo2 11-05-2009 12:43 AM

ok, I'll bite. What version of apache are you using? Where are the config files? Did you try reading them?

Evo2.

illNino 11-05-2009 12:50 AM

Running ubuntu, apache2. /etc/apache2/httpd.conf

Nothing inside them, there's an /etc/apache2/apache2.conf file with a bunch of stuff in it.

evo2 11-05-2009 12:58 AM

Quote:

Originally Posted by illNino (Post 3745250)
Running ubuntu, apache2. /etc/apache2/httpd.conf

Nothing inside them, there's an /etc/apache2/apache2.conf file with a bunch of stuff in it.

Well, my suggestion still stands, I just guessed the name of the config file incorrectly.

http://httpd.apache.org/docs/2.0/mod...tml#servername

Evo2.


All times are GMT -5. The time now is 08:52 PM.