Author Topic: apache not reading vhost?  (Read 23882 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
apache not reading vhost?
« on: May 03, 2015, 11:57:38 AM »
Hi and thanks for taking the time to read this.

I have seen several people with the same problem as me but yet haven't seen a fix.

My server will only display the website in /usr/local/apache/htdocs/ and seems to ignore the vhost file altogether.

Any fixes I could try?

Regards Lee.

Offline
**
Re: apache not reading vhost?
« Reply #1 on: May 03, 2015, 12:13:18 PM »
Hi there

please explain a bit more about the way you have set your server up , are you using varnish ?

Offline
*
Re: apache not reading vhost?
« Reply #2 on: May 03, 2015, 12:22:02 PM »
Hi, no I'm not using varnish.
I have a fresh install of centos 6.6 desktop minimum.
I've been over and over the setup's but can't find anything wrong.
The only thing I did by mistake was installed NGINX but I've disabled it again.

Many thanks Lee.

Offline
**
Re: apache not reading vhost?
« Reply #3 on: May 03, 2015, 01:26:47 PM »
Do you have DNS setup with www A records pointing to the server ip address for the domains that arent working ?

Offline
*
Re: apache not reading vhost?
« Reply #4 on: May 03, 2015, 01:35:55 PM »
yes I do.

www.farmradio.org.uk. IN A 79.78.xxx.xxx

Offline
**
Re: apache not reading vhost?
« Reply #5 on: May 03, 2015, 02:14:01 PM »
Ok i see whats happening if i visit the website , what does tail -f /usr/local/apache/logs/error_log show when you refresh the website ? it could be permissions on the include files or vhost file

Offline
**
Re: apache not reading vhost?
« Reply #6 on: May 03, 2015, 02:16:44 PM »
Also check file and folder permissions for the website files while youre at it

Offline
*
Re: apache not reading vhost?
« Reply #7 on: May 03, 2015, 02:20:27 PM »
the log shows this:-

[Sun May 03 15:02:05 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:04:57 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:06:47 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:07:45 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:08:46 2015] [error] [client 128.65.103.201] File does not exist: /usr/local/apache/htdocs/farmradio.xml
[Sun May 03 15:14:57 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:14:59 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:15:03 2015] [error] [client 196.210.209.153] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/
[Sun May 03 15:15:46 2015] [error] [client 151.227.94.108] File does not exist: /usr/local/apache/htdocs/img, referer: http://www.farmradio.org.uk/

Re: apache not reading vhost?
« Reply #8 on: May 03, 2015, 02:24:52 PM »
There is a known bug to us that enabling nginx will cause your apache not to work as expected. You can contact your server administrator to fix it.

Offline
*
Re: apache not reading vhost?
« Reply #9 on: May 03, 2015, 02:30:47 PM »
Thanks for the reply, this server is owned by me on our company network, what do I need to do?

Regards Lee.

Re: apache not reading vhost?
« Reply #10 on: May 03, 2015, 02:37:06 PM »
Well if you dont have a server admin, I would say best possible option for you is to reinstall CWP or I think CWP team provides managed support, so you can pay them and get it.

Offline
**
Re: apache not reading vhost?
« Reply #11 on: May 03, 2015, 02:51:27 PM »
/usr/local/apache/htdocs/farmradio.xml

it looks like youre not hosting from /home/user/public_html i would try correcting the config on the server before reinstalling everything , could learn something new (-;

Offline
*
Re: apache not reading vhost?
« Reply #12 on: May 03, 2015, 03:00:44 PM »
100% agree with you about the paths but were can I set it?

Many thanks.

Offline
**
Re: apache not reading vhost?
« Reply #13 on: May 03, 2015, 06:08:14 PM »
Id start by making sure Nginx is really not installed, then delete the current user youre using ,reboot the server and re compile apache with the options you want,( from within cwp) then add a new user and see where the home folder is created , compare the path to the config in vhosts under apache in cwp , then lets see if it works.

Offline
*
Re: apache not reading vhost?
« Reply #14 on: May 03, 2015, 10:09:26 PM »
have you tried to rebuild apache vhosts ?
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services