I have the sample cookbook app working fine. However, when I create a new rails app and add a new Virtual Host to httpd.conf and a new hosts entry and start the scgi server, the page being shown is still the cookbook app. Now, I know you are thinking that I didn''t change the DocumentRoot in httpd.conf or something like that, but I double-checked all of that. I even modified the index.html in the cookbook/public folder and now both apps are still showing me the old index.html for the cookbook app. So, I suppose that there is a cache somewhere. If so, how do I delete this cache. Stopping and restarting of Apache, MySQL and SCGI doesn''t seem to help. Any ideas? -- Alex Ezell "Formal Restrictions, contrary to what you might think, free you up by allowing you to concentrate on purer ideas." - Winter Sorbeck in Chip Kidd''s "The Cheese Monkeys"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alex Ezell wrote:> I have the sample cookbook app working fine. However, when I create a > new rails app and add a new Virtual Host to httpd.conf and a new hosts > entry and start the scgi server, the page being shown is still the > cookbook app.> Any ideas?When a request comes in to apache, if it doesn''t match exactly on a ServerName directive, it will use the first virtual host found in the config file. Did you modify the ServerName line? Is it exactly the same as your hosts file and what you use in the URL? - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDi5AGSIxC85HZHLMRAmvFAJ9u4qvKEdCjklMTT0i17js+mZm0hwCfRIda JO0XRdjWCiqEM85IQATr6ls=IO2z -----END PGP SIGNATURE-----
On 11/28/05, David Morton <mortonda at dgrmm.net> wrote:> Alex Ezell wrote: > > I have the sample cookbook app working fine. However, when I create a > > new rails app and add a new Virtual Host to httpd.conf and a new hosts > > entry and start the scgi server, the page being shown is still the > > cookbook app. > > > Any ideas? > > When a request comes in to apache, if it doesn''t match exactly on a ServerName > directive, it will use the first virtual host found in the config file. Did you > modify the ServerName line? Is it exactly the same as your hosts file and what > you use in the URL?Yes, everything matches. I even tried taking out the VirtualHost entry for the cookbook app altogether and I still was getting the cookbook app. As I said, it was even showing me an old index.html for the cookbook app after I modified it just to see if I could see the difference. -- Alex Ezell "Formal Restrictions, contrary to what you might think, free you up by allowing you to concentrate on purer ideas." - Winter Sorbeck in Chip Kidd''s "The Cheese Monkeys"
Maybe its your browser cache. Anyway, try this: rename the cookbook directory so that it can''t be found by Apache. Either delete the cookbook''s VirtualHost section, or make sure you app''s VirtualHost appears first in httpd.conf. now try accesing your app. If you still get the cookbook redirect page, then its got to be your browser cache, so hold down the shift key and click on the refresh button (this should bypass your browser cache). Curt On 11/28/05, Alex Ezell <aezell at gmail.com> wrote:> > On 11/28/05, David Morton <mortonda at dgrmm.net> wrote: > > Alex Ezell wrote: > > > I have the sample cookbook app working fine. However, when I create a > > > new rails app and add a new Virtual Host to httpd.conf and a new hosts > > > entry and start the scgi server, the page being shown is still the > > > cookbook app. > > > > > Any ideas? > > > > When a request comes in to apache, if it doesn''t match exactly on a > ServerName > > directive, it will use the first virtual host found in the config > file. Did you > > modify the ServerName line? Is it exactly the same as your hosts file > and what > > you use in the URL? > > Yes, everything matches. I even tried taking out the VirtualHost entry > for the cookbook app altogether and I still was getting the cookbook > app. As I said, it was even showing me an old index.html for the > cookbook app after I modified it just to see if I could see the > difference. > > -- > Alex Ezell > "Formal Restrictions, contrary to what you might think, > free you up by allowing you to concentrate on purer ideas." > - Winter Sorbeck in Chip Kidd''s "The Cheese Monkeys" > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051128/2cfb09a8/attachment.htm
On 11/28/05, Curt Hibbs <curt.hibbs at gmail.com> wrote:> Maybe its your browser cache. > > Anyway, try this: rename the cookbook directory so that it can''t be found by > Apache. Either delete the cookbook''s VirtualHost section, or make sure you > app''s VirtualHost appears first in httpd.conf. > > now try accesing your app. If you still get the cookbook redirect page, then > its got to be your browser cache, so hold down the shift key and click on > the refresh button (this should bypass your browser cache).This worked like a charm. Somewhere between the Apache conf and the cache the problem was fixed. Thanks! -- Alex Ezell "Formal Restrictions, contrary to what you might think, free you up by allowing you to concentrate on purer ideas." - Winter Sorbeck in Chip Kidd''s "The Cheese Monkeys"