HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   new server ip (http://www.howtoforge.com/forums/showthread.php?t=60591)

skoena 16th February 2013 00:42

new server ip
 
My server has got a new ip address.
Changed the address via Server IP Address.
Added the ip address to all websites.

But the only thing i'm getting is

Quote:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.
Is there anything i should do or check?

skoena 16th February 2013 12:47

If I check the vhost for my one of my domains I get this:

Quote:

<Directory /var/www/mydomain.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost MyHomeIP:80>
DocumentRoot /var/www/mydomain.com/web

ServerName mydomain.com
ServerAlias *.mydomain.com
ServerAlias webmail.mydomain.com
ServerAdmin webmaster@mydomain.com

ErrorLog /var/log/ispconfig/httpd/mydomain.com/error.log
I think it is correct but I still only get the It Works! page.

falko 16th February 2013 15:07

Do you see the IP in the output of
Code:

ifconfig
? If not, you must add it to your network configuration.

skoena 16th February 2013 19:40

Falko,
Yes did that.

Quote:

eth0 Link encap:Ethernet HWaddr 00:16:35:5b:7e:7c
inet addr:192.168.2.220 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::216:35ff:fe5b:7e7c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:330 errors:0 dropped:0 overruns:0 frame:0
TX packets:290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42715 (42.7 KB) TX bytes:40248 (40.2 KB)
Interrupt:25
I added this 192.168.2.220 address as Server IP address in ispconfig. Should I also use this IP in the DNS records? Or should this be the external IP?

falko 17th February 2013 13:36

You must use the external IP in the DNS records and then configure your router to forward ports 80 and 443 to your web server.

skoena 18th February 2013 20:34

It works now, tnx!


All times are GMT +2. The time now is 01:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.