You are not logged in.

#1 2016-09-20 16:58:44

ffurbo
Member
From: Poland
Registered: 2016-02-13
Posts: 12

[SOLVED] apache vhosts "cache"

I'm trying to extend my web development skills and learn some framework. I'm created simple symfony and zend projects.

The problem is every time I setup new virtual host in /etc/httpd/conf/vhosts/ and /etc/hosts, apache keep serving me previous project I was working on.

E.g. I've just setup new zend project: zend01.local in /srv/zend/test01 directory. What I can see in my web browser on http://zend01.local/ url is symfony welcome page saying: "Your application is now ready. You can start working on it at: /srv/symfony/cms/"

Previously after some struggling and restarting httpd apache started serving correct page, but I don't know what I exactly did that it started working sad

I tried htcacheclean, but I don't think it is a right shot, as I don't have mod_cache module enabled.

Last edited by ffurbo (2016-09-21 19:18:20)


Sorry for my English

Offline

#2 2016-09-20 17:19:17

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: [SOLVED] apache vhosts "cache"

Restarting the httpd service should apply vhost changes.

Offline

#3 2016-09-20 17:23:06

ffurbo
Member
From: Poland
Registered: 2016-02-13
Posts: 12

Re: [SOLVED] apache vhosts "cache"

I have already tried "sudo systemctl restart httpd" a few times, but still not working.


Sorry for my English

Offline

#4 2016-09-21 15:44:11

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: [SOLVED] apache vhosts "cache"

Did you remember to include the new vhost config file in httpd.conf?
What is the output of: httpd -S?

can you post the contents of httpd.conf and vhost config files, as well as relevant hosts entries?

Offline

#5 2016-09-21 19:17:48

ffurbo
Member
From: Poland
Registered: 2016-02-13
Posts: 12

Re: [SOLVED] apache vhosts "cache"

Already found issue in my config. I thoughtlessly pasted vhosts from zend tutorial and I had <VirtualHost *:80> instead of: <VirtualHost zend01.local:80>.
Thank you for your help.


Sorry for my English

Offline

Board footer

Powered by FluxBB