port addresses work but port 80 [SOLVED] Thanks Andy

Hi please help with this nightmare.

I have recently had my 2wire modem go down. It used dmzplus to use my public static ip as the lan ip

ie 192.168.0.1 became 67.32.23.23 so any traffic sent to the modem would simply go to the server.

I have had to get another modem which also has a dmz but still keeps the local ip address as private.

when i try to access virtualmin from the web via port 10000 everything works ok - so do any other ported addresses.

My problem is when i try to access a domain on my server via port 80 and all i see regardless of the domain name i use is the linux server folder (/var/www/html) not the domain local http directory.

The domain ip’s are still set as the public address in bind and i have changed nothing else.

can someone please try to point me in the right direction.

thanks

Sorry for duplicate post

Howdy,

My problem is when i try to access a domain on my server via port 80 and all i see regardless of the domain name i use is the linux server folder (/var/www/html) not the domain local http directory.

It sounds like there may be an issue with how the IP address is setup in Apache.

Check out the section of this document called “The wrong site shows up” and see if that does the trick for you:

https://www.virtualmin.com/documentation/web/troubleshooting

I have sorted it with changing the apache http.conf to the local ip address instead of the public ip address.
The virtualhost and NamedVirtualHost was set to the public address not the 192.168.0.1

Many thanks again.

really appreciated.

eX

I’m not sure if your still around Andy? But i am just having trouble with the mail server (Dovcot)

the maillog file shows

dovecot: Killed with signal 15
dovecot: Dovecot v1.0.7 starting up
dovecot: Killed with signal 15
dovecot: Dovecot v1.0.7 starting up

The message you’re showing there doesn’t appear unusual – that’s what I’d expect to see during a restart of the Dovecot daemon.

What problem is it you’re having exactly? What are the symptoms?

-Eric

Sorry for the delay - but i called it a night yesterday.

The websites are now back up and all ok

The one thing that i cannot get working is dovecot (mail server)

when i use the IP in the mail client it connects fine and downloads emails fine
If i use the mail.domain.com i get unable to connect to mail server error.

thanks again Andy.

when i use the IP in the mail client it connects fine and downloads emails fine If i use the mail.domain.com i get unable to connect to mail server error.

Mmm, what you have there sounds like a DNS problem. That could happen if your DNS server isn’t returning the correct server IP address whenever doing a lookup on mail.domain.tld.

What IP address is returned when doing a DNS lookup on mail.domain.tld? Is it the correct external IP for your server?

-Eric

Sorted that one too thanks Eric, you’re a star.