Home Page   #javascript  #perl  #c  #openmoko  #php  #ruby-lang  #apache  #cisco  #java  #mysql   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#apache

27 December 2007


Total 13 pages. You are browsing page 3/13.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

03:29 <****> perhaps it's something being handled by php...
03:29 * megaspaz not know...
03:29 <****> I would think that it's more in Apache's domain.
03:30 <****> well apache would throw up an error
03:30 <****> a 404
03:30 <****> it would, yes
03:30 <****> a 404 is *better than a blank page or a browser hang
03:30 <****> and it does with other filetypes
03:30 <****> right
03:30 <****> I haven't tested .html yet. It might depend on what's being handled by what.
03:30 <****> so i'm guessing there's something about php... like it takes anything after blah.php as script args or something
03:31 <****> Well, it is accessible through PHP_SELF, which is handy. (And an XSS hazard, if you are sloppy.)
03:31 <****> well it looks like it might be an apachething... does sort of the same thing with my index.cgi python script
03:32 <****> cool
03:32 <****> might be for script files
03:32 <****> doing blah.com/blah.gif/foo throws up a 404
03:33 <****> i don't have any html files to test though...
03:33 <****> :-P
03:33 * fajita throws egg at TimMc
03:34 <****> fails on a .html file -- must only be for "active" content types
03:34 <****> yeh, php and cgi seem to just load up the current page...
03:34 <****> other static files throw a 404
03:37 <****> Good evening
03:37 <****> if it is a good evening, which niq doubts
03:47 <****> hey all, i have a problem, i have a lot of virtual hosts setup in apache2, they all work fine, but for some reason apache isnt defaulting to 000-default like it should, its somehow got its default set to a different virtual host
03:48 <****> if i do apache2 -t -D DUMP_VHOSTS it shows that the default server is set to one of the other vhosts
03:48 <****> anyone any idea where the setting is to fix this?
03:48 <****> in debian it's set by filename asciibetical order
03:49 <****> whatever vhost config file comes up first ends up being the default vhost config file with the first defined vhost being the default vhost
03:49 <****> and that's in sites-enabled, yes?
03:49 <****> yeah but its not doing that, the file is there
03:50 <****> its in there yeah
03:50 <****> yeah, but where did you define your other vhosts?
03:50 <****> they're all where they should be, in the sites-enabled dir
03:50 <****> and what's the output of apache2 -S
03:50 <****> well, sites-available and symlinked
03:51 <****> and what's the output of apache2 -S
03:51 <****> pastebin it
03:51 <****> ugh hang on
03:51 <****> or don't... *shrugs*
03:51 <****> like i said, it shows a different virutal host as the defaul
03:51 <****> like how about you let us see the output?
03:53 <****> http://rafb.net/p/by09Xm78.txt
03:54 <****> can't help you
03:54 <****> can't see what the files are
03:55 <****> what do you need to know
03:55 <****> the default file is there
03:55 <****> its enabled, but its not being accessed
03:55 <****> how about: ls /etc/apache2/sites-enabled
03:55 <****> dude, its there, i JUST told you that
03:56 <****>_<
03:56 <****> OK, so it's there. But the names of the other files is *important*.
03:57 <****> the first one is 000-default, the rest start with b, c, d. thats my point, it should logically goto 000-default
03:57 <****> not really... but i did want to see all the output
03:57 <****> if there was any overlaps
03:57 <****> *shrugs*
03:58 <****> how many namevirtualhost lines do you have and in which file(s) are they defined in?
03:58 <****> grep -ir namevirtualhost sites-enabled/*
03:59 <****> 000-default:NameVirtualHost *
03:59 <****> thats it
03:59 <****> your output shows something different
03:59 <****> it shows ip:*
04:00 <****> apache2 -S would show *:0 is a namevirtualhost instead...
04:01 <****> or *:*
04:01 <****> *:* is a NameVirtualHost
04:01 <****> fajita: hush
04:01 * fajita hides in the corner
04:01 <****> hmm hang on, something changed....
04:04 <****> can someone point me in the right direction in how to..
04:04 <****> do a modrewrite of page.php?id=5 to a static url that doesnt need to have the id number in it?
04:05 <****> thedude-: So, what do you want to use to identify the target content instead?
04:05 <****> well, thats why im asking, i dont know, i've seen lyrics site somehow manage it though
04:06 <****> So, you want something like: /lyrics/BandName/AlbumName would rewrite internally to /lyrics.php?band=BandName&album=AlbumName
04:06 <****> my guess, it's the other way around
04:06 <****> and that smacks of seo rewriting
04:06 <****> yes sir, for seo exactly..
04:07 <****> or prettification
04:07 <****> which I can support
04:07 <****> go for it... i don't don't do rewrite anymore and i definately don't do seo rewriting
04:07 <****> well actually
04:07 <****> it's just one ID
04:07 <****> fajita: seo
04:07 <****> seo is http://wooga.drbacchus.com/seo
04:08 <****> let's say example.com/page.php?id=5 to example.com/artist/song
04:08 <****> i dont know if its possible just using apache
04:08 <****> probably would have to use some php too right?
04:09 <****> It certainly is. First, make sure you have mod_rewrite. Then play around with some examples you find online.
04:09 <****> And then you'll want to use RewriteRule /artist/song /page.php?id=5
04:10 <****> right, but thats what i don't understand, would i have to write a rule for each id?
04:10 <****> yeah
04:10 * yango introduces regular expressions to thedude-
04:10 <****> regular expressions, thedude-. thedude-, regular expressions
04:11 <****> yango: thanks, ill look it up
04:11 <****> for some reason, i picture yango doing the ballmer dance...
04:11 * yango throws chairs at megaspaz
04:12 <****> heh
04:12 <****> thedude-: or you can do something fancier like this: RewriteRule ^/([^/]+)/([^/]+)$ /page.php?artist=$1&song=$2
04:13 <****> i coulda sworn he wanted it the other way around...
04:13 <****> I doubt it.
04:13 <****> /foo/blah


Total 13 pages. You are browsing page 3/13.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo