Apache 8080 port problem ( Apache is functioning normally)

ayberk

Verified User
Joined
Apr 18, 2016
Messages
52
Hi,

We are using Centos 6 64 Bit. I've installed the Varnish and set the ports. When i switch Apache port from 80 to 8080 it says "Apache is functioning normally" but the website is not opening. How can i fix this?

httpd.conf

Code:
ServerRoot "/etc/httpd"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8080

Admin panel: Directadmin.
OS: Centos 6.0 64 Bit

Thanks.
 
Hi,

Our ports inside the "httpd-vhosts.conf" are all set as 8080. Httpd.conf is also included to this.
After making these changes and restart the Apache, the website is not opening but Varnish is still working.

Do i have to use these commands when i make the port 8080?

cd /usr/local/directadmin/custombuild
./build rewrite_confs
 
What Alex meant is the users virtual host which are stored in /usr/local/directadmin/data/users/USER/httpd.conf

You need to change/add in /usr/local/directadmin/conf/directadmin.conf the value port_80=8080 and than rewrite confs.

Best regards
 
What Alex meant is the users virtual host which are stored in /usr/local/directadmin/data/users/USER/httpd.conf

You need to change/add in /usr/local/directadmin/conf/directadmin.conf the value port_80=8080 and than rewrite confs.

Best regards

httpd.conf file is currently like this:

/usr/local/directadmin/data/users/xxxx/httpd.conf

VirtualHost SERVER IP:8080 127.0.0.1:8080 >
ServerName www.domain.com


Add in /usr/local/directadmin/conf/directadmin.conf:

port_80=8080

That's all right?
 
Back
Top