#perl - Sun 4 Mar 2007 between 17:41 and 17:58



arpwatchyeah I'm looking at it
<link rel="stylesheet" type="text/css" href="web.css" /> this comes through, but no styles are applied
Khisanthis that the correct path to the stylesheet?
arpwatchyes, it is located in the same dir as the .pl file
nixternala/wi6
yay!
arpwatchI wouldn't have to chmod the css file like I do the .pl would I?
thrigwhy would content be executable?
Jmax-arpwatch: try loading it seperately
birginight everybody
nanonymeneeds to be world-readable anyway
Jmax-see if it is being served ok, if the content is right
thrig(except, of course, on Windows. But they oddly have many security problems.)
Khisanthor look in your server logs
arpwatchI get an internal server error when I try to bring up /web.css in the browser..maybe I should move it out of cgi-bin
thrigwhy are you mixing content and programs?
arpwatchI didn't know where else to put the css file, instead of putting a full path somewhere I just stuck it in the same dir
the tutorials haven't mentioned anything yet about not putting a .css in the cgi bin
Woostacgi-bin is an old concept .. when it exists it's often a blessed directory
If your tutorials are talking about a cgi-bin, I'd guess they're rather old
arpwatchno there isn't a mention of cgi-bin, but that is where I placed my .pl file
Jmax-why?
it's unnecessary
arpwatchseemed like a good place to throw it, heh. just about every website I see /cgi-bin/whatever.cgi
Khisanthyour cgi-bin is probably configured to execute whatever is in it when something tries to access it, now consider what happens when you try to execute a css file
Woostaarpwatch: if you stick *any* file in there, it's likely to be executed as CGI
arpwatchhmm alright
I'll just move everything to my public_html
Woostaarpwatch: it's many many years since cgi-bin was common ..
Khisanthname isn't really all that important :)
WoostaKhisanth: it is if the directory is blessed in your apache conf :)
Khisanthnot really, other than the need to have them match
Woostalol
arpwatchshould I uncomment this in my apache2.conf to use .cgi in other directories? #AddHandler cgi-script .cgi
thrigquick! to the voting booths!
Woostaarpwatch: IMHO, leave it commented (so you have it for later reference) and add a new line right underneath: AddHandler cgi-script .pl
arpwatchcan I make it handle .cgi and .pl by AddHandler cgi-script .cgi or should it be together with the first AddHandler ?
that is hard to read
heh
WoostaIIRC you can have them both on the one line: AddHandler cgi-script .pl .cgi

Page: 4 11 18 25 32 39 46 53 60 67 74 

IrcArchive