LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-04-2009, 06:04 PM   #1
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Rep: Reputation: 0
/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.
 
Old 11-04-2009, 10:21 PM   #2
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
bump.
 
Old 11-04-2009, 11:28 PM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,208

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
Stab in the dark here...

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

Evo2.
 
Old 11-04-2009, 11:39 PM   #4
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Nothing is specified in that file... I think I have to do something with virtual hosts, but not 100% sure...
 
Old 11-04-2009, 11:43 PM   #5
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,208

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

Evo2.
 
Old 11-04-2009, 11:50 PM   #6
illNino
LQ Newbie
 
Registered: Nov 2008
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 11-04-2009, 11:58 PM   #7
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,208

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
Quote:
Originally Posted by illNino View Post
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.
 
  


Reply

Tags
apache, dns


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache var/www bmeserver Linux - Newbie 3 08-14-2009 09:56 PM
DNS http:domain.com resolve to www.domain.com keysorsoze Linux - Networking 3 02-12-2007 03:03 AM
Redirecting domain.com to www.domain.com rustyz82 Linux - General 3 05-18-2006 03:41 AM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 04:37 AM
Cant get entry in bind to work with domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 06:20 AM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration