Okay, so after a month of being diverted from my new project,
I finally got some time to play with it today. I set up a
<VirtualHost> and began to put things in place.
Only now, I'm running into a minor problem. My handler isn't
able to get the filename when I issue the
$r->path_info
command. As a result, TT2 isn't able to process the file.
After reading the relevant portions of the Eagle, I have
become disappointed with the fact that it would appear that
the path_info method is not working as most people would
presume. Maybe I'm just not looking at it correctly.
From my httpd.conf:
<VirtualHost 192.168.0.1:8080>
DocumentRoot "/usr/local/apache/sites/test/htdocs"
PerlRequire conf/startup.pl
PerlFreshRestart On
PerlModule Apache::TTProc
<Directory />
SetHandler perl-script
PerlHandler Apache::TTProc
</Directory>
ErrorLog logs/test-error.log
</VirtualHost>
Now one might think that if I made a request to
http://192.168.0.1:8080/index.html that the $r->path_info
would return "/index.html", and that's what one would truly
expect. Only, it's not.
Here,
for all intents and purposes, is what my handler setup is like.
ALL HAIL BRAK!!!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.