Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Trying to resolve my domain to the correct index.html?
New Posts  All Forums:Forum Nav:

Trying to resolve my domain to the correct index.html?

post #1 of 7
Thread Starter 
I'm trying my hand at hosting a home webserver using Apache but need some guidance on getting it running correctly with a DNS. I loaded up CentOS on a VM and installed it and configured apache. The VM shares the same IP that my provider gives me which is wherein lies the problem.

I registered a domain for free using a service called DynDNS just to get this running, and I associated the domain name to my IP address. Problem is, in CentOS, when I type in the IP address or the domain name, it is trying to connect to my router settings. If I type 127.0.0.1 it will pull up the correct index of the site I am trying to host.

Can anyone point me to some documentation regarding how to correct this or can tell me how to fix it? I have looked into the "virtualhost" directive but am a little confused for now.

Thanks.
Edited by Dark-Asylum - 2/18/13 at 5:13am
Gaymen Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k ASRock P67 Extreme4 Gen3 Display driver has stopped and has recovered 7970 8GB G.Skill Ripjaws DDR3 @1600 Mhz 
Hard DriveCoolingOSMonitor
x1 Corsair Force 3 180GB SSD, x2 Spinpoint F3 1TB NH-D14 Windows 8 Pro ASUS VW266H 26" LCD, 22" 1080p AOC, 22" Emprex 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Reds 850W XFX Black Edition Cooler Master HAF XB Logitech G700 
Audio
ATH-m50s 
  hide details  
Reply
Gaymen Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k ASRock P67 Extreme4 Gen3 Display driver has stopped and has recovered 7970 8GB G.Skill Ripjaws DDR3 @1600 Mhz 
Hard DriveCoolingOSMonitor
x1 Corsair Force 3 180GB SSD, x2 Spinpoint F3 1TB NH-D14 Windows 8 Pro ASUS VW266H 26" LCD, 22" 1080p AOC, 22" Emprex 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Reds 850W XFX Black Edition Cooler Master HAF XB Logitech G700 
Audio
ATH-m50s 
  hide details  
Reply
post #2 of 7
Your problem here may not be a issues at all. Trying to connect to a WAN address while inside the destinations NATing will often throw up weird results. Try your dyndns address externally, if it works then use the internal (VMs) IP when at home.

if the dyndns address vrings up the same router config page when youre not at home, then you need to check your router config
post #3 of 7
More Fans
(9 items)
 
x100e (RIP)
(7 items)
 
 
CPUGraphicsRAMHard Drive
Athlon Neo MV-40 ATI Radeon HD3200 4GB Patriot DDR2 OCZ Vertex 3 Slim 120GB 
OSMonitorMouse
Crunchbang LG Green Screen Trackpoint 
  hide details  
Reply
More Fans
(9 items)
 
x100e (RIP)
(7 items)
 
 
CPUGraphicsRAMHard Drive
Athlon Neo MV-40 ATI Radeon HD3200 4GB Patriot DDR2 OCZ Vertex 3 Slim 120GB 
OSMonitorMouse
Crunchbang LG Green Screen Trackpoint 
  hide details  
Reply
post #4 of 7
Your router needs to know what to do with the incoming requests, so you will need to forward ports 80, 8080 and 443 (optional for ssl) to the correct ip on your lan.
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
post #5 of 7
Thread Starter 
This is all good info and I continued to play around with it more but still can't get it to work. Putting my domain into the address bar actually doesn't pull anything up now. Port 80, 443, and 8080 are all forwarded to the internal IP of the machine hosting the VM.

But here's the thing, my network adapters in Windows 7 list a VMware connection that has an IP of 192.168.61.1. Obviously this is working as some kind of switch/router between my network and the VM. My CentOS VM has an ip of 192.168.61.129. Any additional advice? My private LAN is on the 192.168.1.x subnet.
Gaymen Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k ASRock P67 Extreme4 Gen3 Display driver has stopped and has recovered 7970 8GB G.Skill Ripjaws DDR3 @1600 Mhz 
Hard DriveCoolingOSMonitor
x1 Corsair Force 3 180GB SSD, x2 Spinpoint F3 1TB NH-D14 Windows 8 Pro ASUS VW266H 26" LCD, 22" 1080p AOC, 22" Emprex 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Reds 850W XFX Black Edition Cooler Master HAF XB Logitech G700 
Audio
ATH-m50s 
  hide details  
Reply
Gaymen Rig
(15 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k ASRock P67 Extreme4 Gen3 Display driver has stopped and has recovered 7970 8GB G.Skill Ripjaws DDR3 @1600 Mhz 
Hard DriveCoolingOSMonitor
x1 Corsair Force 3 180GB SSD, x2 Spinpoint F3 1TB NH-D14 Windows 8 Pro ASUS VW266H 26" LCD, 22" 1080p AOC, 22" Emprex 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Reds 850W XFX Black Edition Cooler Master HAF XB Logitech G700 
Audio
ATH-m50s 
  hide details  
Reply
post #6 of 7
Quote:
Originally Posted by Dark-Asylum View Post

This is all good info and I continued to play around with it more but still can't get it to work. Putting my domain into the address bar actually doesn't pull anything up now. Port 80, 443, and 8080 are all forwarded to the internal IP of the machine hosting the VM.

But here's the thing, my network adapters in Windows 7 list a VMware connection that has an IP of 192.168.61.1. Obviously this is working as some kind of switch/router between my network and the VM. My CentOS VM has an ip of 192.168.61.129. Any additional advice? My private LAN is on the 192.168.1.x subnet.

Sounds like you're not using a bridged connection and your VM is inside it's own NAT - which means you either need to do port forwarding on VMWare as well, or change the network adaptor to be bridged (personally I'd recommend the latter).
post #7 of 7
Quote:
Originally Posted by Plan9 View Post

Sounds like you're not using a bridged connection and your VM is inside it's own NAT - which means you either need to do port forwarding on VMWare as well, or change the network adaptor to be bridged (personally I'd recommend the latter).

Do this. Then you can route everything directly to the VM
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Trying to resolve my domain to the correct index.html?