[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    [Mason] Vhosts not working like expected
From:       "Jason Younker" <donktwo () hotmail ! com>
Date:       2005-04-14 22:44:41
Message-ID: BAY101-F11B3A78486637EEF84C0EDAD350 () phx ! gbl
[Download RAW message or body]


I have a home setup running apache 1.3, mod_perl 1.29 & mason 1.26. All was 
happy until a few nights ago when I changed up httpd.conf to use named based 
virtual hosts. The good news is that it works (works being that apache will 
serve any of the 3 sites given a set of circumstances). The problem is this, 
and hang in there with me while I explain: I have 3 sites which I will refer 
to as site.one, site.two and site.three. If I restart everything, I get a 
properly displayed site.one, but site.two shows a blank page and site.three 
displays a mason error saying it cannot find a mandatory method. I look at 
the logs and nothing odd shows up for two and three, it just appears that 
the files cannot be read. So, I go in, open the index page for size two, put 
in a new line, save it and refresh my site.two browser page; it works! 
However, now I go back to site one, which previously displayed properly, and 
now it is a totally blank page exactly like site two was before I made the 
small edit. I edit site.three's index and now site three displays properly 
and site one and two are showing blank pages. In short, I can only view one 
site at a time b/c the only page that will now display is the last modified 
file.

Of note here is that for site.three, there is a syshandler in the doc root 
which defines some things, among them a mandatory method for any .html page. 
If I do not have this method in a file, it will die saying something like 
"cannot find method....". My point is that if I modify site.one, I then get 
a mason error for site.three's home page. This means that it can read the 
syshandler for site.three, but not the index.html file. At least that is 
what I have gleaned from beating my head against this wall.

[ reply from another list posting ]
>is it a mason problem- i.e., can you see a nonmason 'hello world'
>page?

well, this is interesting. Here is what I did to answer your question:

First, I created a strictly html test.html page in the root of each site. As 
I created each page, I opened a new tab and verified that it showed 
correctly. The output of the test page was "<SiteX> Test Page" where SiteX 
is one, two or three. Note, for site three (the one which, due to the 
overall design, must have a specific method in the file) I included the 
following: <%flags> inherit => undef </%flags>

Next, I went back to each tab and refreshed (w/o using any cache of course), 
and all 3 showed content (as where before two of the three would be blank). 
However, the content was the exact same for all 3, that of the final file I 
modified. I closed out of all the files, restarted apache, and it persists.

I then did the same thing in reverse (edit site three, two, one) and the 
same thing happened, almost. Site two showed the last modified files 
contents, and site three threw a mason error (which is what it would do if 
reading site one's test file).

So, to answer your question, after that little test, I would maybe have to 
say no, it is not a mason problem. It almost appears as though apache is 
using the last modified file as the doc root?

jason




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic