#apache
13 November 2007
Total 8 pages. You are browsing page 4/8.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
19:15 <****> part of the display problem is the use of 1 pixel background gifs on nested nested nested tables
19:15 <****> that slows down display if the gif isn't yet available.
19:15 <****> and probably even if it is.
19:15 <****> pre css even. im sure it was the shit in the 90s when they made it hehe
19:15 <****> setting the background color style would be a lot more effective.
19:15 <****> but anyway, if you have to live with it, you have to live with it.
19:16 <****> you'll need to increase maxclients and maxservers
19:16 <****> maxservers
19:16 <****> maxserver
19:16 <****> well, read the manual. :)
19:16 <****> fajita: maxclients
19:16 <****> bz029: i'm not following you...
19:16 <****> fajita maxserver
19:16 <****> bz029: what?
19:16 <****> bleh
19:18 <****> hm, so, any ideas on what went wrong for me?
19:20 <****> olegfink mime type
19:20 <****> olegfink is your php in .php files or in .htm/.html files?
19:21 <****> olegfink theres a mime type directive that tells apache which file extensions to look for php code in. if thats not set then it will think your php code is html and output it as text
19:21 <****> in .php
19:21 <****> no php in conf/mime.types
19:22 <****> is this okay?
19:22 <****> Whats that magic little phrase I need to have to run multiple vhosts
19:22 <****> I cont remember
19:22 <****> "make vhosts" ?
19:23 <****> nah, something you have to have in the config so apache looks for all of em
19:24 <****> olegfink, nope thats your problem
19:24 <****> namevirtualhost
19:24 <****> adaptr: bingo
19:24 <****> damn, is she off again ?
19:24 <****> moope1 no, sadly I only got 4 out of 5
19:24 <****> namevirtualhost * isnt it
19:24 <****> no, it most definitely isn't
19:24 <****> topic
19:25 <****> bz029: what should I do? application/x-php? is this the right mimetype?
19:25 <****> bz029: mind a quick pm?
19:25 <****> heh, okay, Im down a pont
19:25 <****> adaptr: what should I be using then?
19:26 <****> namevirtualhost *:80
19:26 <****> *SPECIFY THE PORT*
19:26 <****>): AddType application/x-httpd-php .php
19:26 <****> adaptr: okay
19:26 <****> thanx
19:26 <****> np
19:26 <****> olegfink the other thing i can think of is in the php.ini file theres a value for shorttags
19:27 <****> ahhhh
19:27 <****> probably right
19:27 <****> does your php start with <? or with <?php ??
19:27 <****> make sure your shorttags are enabled if it starts with <?
19:28 <****> Or make sure your script starts with <?php because <? are used not just for PHP but also for other languages.
19:28 <****> yeah <?php is always best
19:28 <****> One more thing (Im putting back together a system I built a long time ago), rewrite rules, How do I make index.php?content=1 into /1?
19:28 <****> olegfink: if you don't have mod_php5 loaded, that directive will do nothing.
19:28 <****> "index.php?content=1" into "/1"?
19:29 <****> moope1 you don't, really
19:29 <****> actually, there's no point having the ifmodule, since that directive would do nothing anyway.
19:29 <****> bz029: ping?
19:29 <****> other way around is trivial, your way is not
19:29 <****> adaptr, Id really like to
19:29 <****> I had it working before :(
19:29 <****> bz029: erm, changed it to "On", restarted apache (just to be sure), but nothing changed (yes, some my apps have <? tag)
19:30 <****> moope1: you probably want to read about mod_rewrite
19:31 <****> olegfink: I probably dont. Dont you chaps have a handy example on how I might achieve "index.php?content=1" into "/1"?
19:33 <****> moope1: Rewrite Engine On
19:33 <****> moope1: RewriteRule /^(\d+)^ index.php?content=$1
19:34 <****> the second ^ is actually a $
19:35 <****> RewriteRule ^(\d+)$ index.php?content=$1
19:35 <****> now better
19:38 <****> I've read that its not recommended to use namevirtualhosts together with https, but it would be fine if it is a wildcard certificate? right? or not?
19:39 <****> as long as all your servernames fit the cert, it's fine
19:39 <****> rici, yeah, thats what I though, so *.domain.com could use namevirtualhosts..
19:39 <****> yup
19:40 <****> rici, sweet, still seems like the server is warning me in the logs though.. but that might be a "feature"..
19:40 <****> what is it warning you?
19:40 <****> it's probably warning you about something else
19:41 <****> by the way, *.domain.com matches foo.domain.com but not www.foo.domain.com just so you know
19:41 <****> rici: hmm.. perhaps.. its saying i should not use https and namevirtualhost
19:41 <****> rici: really? only luck that i havent been caught by that i guess..
19:41 <****> can you paste the precise message?
19:42 <****> let me see..
19:43 <****> olegfink: thanks very much man, I just found the original tho :p
19:43 <****> exactly the same :)
19:43 <****> rici: it gives me a bunch of hints actually, i'll check up on those first..
19:43 <****> rici: thanks for the hints!
19:43 <****> ericpersson: the one you need to worry about is "mixing * and non-* ports..."
19:43 <****> moope1 those don't do what you requested - they do the exact reverse
19:44 <****> well, one of the ones. "vhost cannot match" is also bad news.
19:44 <****> rici: i see, none of those yet.. hehe..
19:44 <****> rici: never seen that..
19:44 <****> rici: got a really strict management of the vhosts, so it doesnt have much "flexibility"..
19:44 <****> ok. i don't remember seeing a warning about ssl vhosts, but maybe it's something new.
19:45 <****> the only server i have which uses wildcard certs is still on 2.0
19:45 <****> and actually it's not mine any more, i have to remember that.
19:45 <****> ... changing jobs after a lot of years does your head in.
19:45 <****> rici: i see, the last line is [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
19:46 <****> ah, cool.
19:46 <****> well, you can get away with it if you either have wildcard certs, or you have alt names in the certs.
19:46 <****> so you can ignore that.
19:46 <****> ok, no way to get rid of the error?
19:46 <****> it's a warning. and i guess not.
Total 8 pages. You are browsing page 4/8.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
