Berkeley CSUA MOTD:Entry 24323
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2002/4/4-5 [Computer/SW/WWW/Server, Computer/SW/OS/Solaris] UID:24323 Activity:very high
4/4     Is there a way to make Apache case-insenstive (on Solaris)?
        (i.e., http://foo.com/cgi-bin/bar?param1=foobar should be
        the same as http://foo.com/Cgi-bIn/BaR?param1=foobar; obvisouly,
        I can write my cgi-bin's so that all the params are
        case-insenstive, but the leading URIs?)
        I have used google and have been on Apache's web site.  Thx.
        [...]
                      \_ Look, dummy, the answer is you can't do it.  Your only
                         other choice is hacking the url parse code in apache
                         to lower case the entire URL.  Good luck with your
                         coding project.
                         \_ Ok, thx.  That's what I thought and I just
                            needed someone to confirm it.
                            \_ it's wrong.  mod_speling does exactly what
                               you want.  Try it, nimrod.
                               \_ why is "mod_speling" spelled with only one
                                  L?  Is it supposed to be some dumb attempt at
                                  being humorous?
                                \_ yes.  laugh a little!
        \_ Wow this was tough to find.  Took me about 15 seconds.
           http://httpd.apache.org/docs/misc/FAQ-H.html#rewrite-nocase
           You're welcome.
           \_ errr...I have read that and the speling module.  mod_speling
              only makes the document name referenced case-insenstive, not
              all the elements that construct the URI.
              all the elements that construct the URI. From Apache:
              "the module is unable to correct misspelled user names (as
               in <DEAD>my.host/~apahce<DEAD> just file names or directory
               names."
              \_ Grasshopper, the wind blows through the trees yet disturbs
                 not the trunk, only the leaves....
                 \_ huh?
                    \_ Grasshopper, the answer lies before your eyes are
                       darkened by your own thoughts.
                \_ it corrects directory names, can't you read?
        \_ Run apache on windows.
           \_ Ew.
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2010/4/19-5/10 [Computer/SW/Security, Computer/SW/WWW/Server] UID:53791 Activity:nil
4/18    http://Apache.org hacked:
        http://www.theinquirer.net/inquirer/news/1601103/apache-hacked
	...
2010/4/22-5/10 [Computer/SW/Languages/Misc] UID:53797 Activity:nil
4/22    In Linux is there an easy way to rename the scripts in /etc/rc?.d ?
        For example I want to set all the /etc/rc?.d/S91apache to S100apache
        so that it'll run the ramdisk BEFORE going to apache.
        \_ Sure, just move them.
           \_ I mean is there a script that will rename all of them
              for me? Like: setrc apache2 0 0 1 1 1 1
	...
2010/1/22-30 [Computer/HW/Laptop, Computer/SW/OS/OsX] UID:53655 Activity:high
1/22    looking to buy a new development laptop
        needs ssdrive, >6 hr possible batt life, and runs linux reasonably
        Anyone have a recommendation? Thx.
        \_ thinkpad t23 w ssdrive and battery inplace of drive bay
        \_ Ever wondered what RICHARD STALLMAN uses for a laptop?  Well,
           wonder no more!
	...
2010/1/12-29 [Computer/SW/Apps/Media] UID:53627 Activity:kinda low
1/12    How do I get a job NOT related to internet DNS social network cloud
        twitter GOOG EC2 amazon API ???
        \_ A CS job not related to API?
        \_ Chip design, or maybe software that does chip design. What is
           your major? How about game developer?
        \_ DNS? DNS? What era ado you live in? I agree that social network
	...
2009/12/7-2010/1/3 [Computer/HW/Memory, Computer/HW] UID:53574 Activity:nil
12/7    How many TCP retransmits are too many? Here is what I get:
            3594143433 segments received
            3760174421 segments send out
            3801829561 segments retransmited
        \_ rephrase. you can never have too much money. or too little.
           what is, is.
	...
2009/5/7-14 [Computer/SW/WWW/Server] UID:52963 Activity:nil
5/7     I am trying to reproduce a customer bug where their apache header
        has the content-encoding as the last line in the header.
        My test platform is running apache2.2 on ubuntu. Is there a way
        to do this ?i I have already read the apache 2.0 docs and
        I dont see anything obvious ? page is txt/html
	...
2009/3/8-17 [Computer/SW/Unix] UID:52685 Activity:kinda low
3/8     I'm reading about an old exploit where someone used a buffer overflow
        in a printer daemon to get "daemon privileges," which allowed them
        to use another exploit on the mail delivery program to get root.  I'm
        not sure what daemon privileges are.  Is there some set of priveleges
        that most daemons run on that is higher than user but lower than root?
        What are they?  I've never heard this before.
	...
2008/10/14-20 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:51527 Activity:nil
10/14   2 apache 2.0.52 servers running on Linux boxes.  Identical httpd.conf
        files (except for ServerName).  But on one, if a CGI script takes
        longer than 300 seconds, it times out.  The other, not.  Why is that?
        \_ Perhaps network equipment configuration. Or try comparing settings
           in /proc/sys/net.
           \_ I ran /sbin/sysctl -a | grep tcp, all settings are the same.
	...
2008/9/3 [Computer/SW/Unix] UID:51030 Activity:nil
9/3     Okay, my sed and awk skills are obviously not up to par here.
        I want to only see the "500's" in my apache error log, how do I
        do that? I want to see the whole line, not just the 500 error code.
        Never mind, grep " 500 " is close enough.
	...
2008/3/10-13 [Computer/SW/SpamAssassin] UID:49412 Activity:nil
3/10    Is there a reliable way to control spam on soda?
        Can someone write an "any undergrad can do it" level FAQ?  Thanks.
        \_ echo "/dev/null" > ~/.forward
        \_ I use Thunderbird to check my soda mail.
        \_ Forward to gmail.  Let google's spam filter work for you.
        \_ I use spamassassin. I just checked and it caught all but one of
	...
2007/12/11-14 [Computer/SW/OS/Linux, Computer/SW/WWW/Server] UID:48785 Activity:nil
12/11   Apache/Linux question: I've got apache 2.0.52 on an idle redhat
        box (2.6.9-55 kernel).  Every so often one to four apache procs
        will run the cpu at 100% for any where from 15 to 90 mins, then
        drop back to normal.  USR and SYS time both increase to levels
        that the production boxes don't reach when serving traffic at
        noon.  I've checked apache and linux kernel versions, several
	...
Cache (70 bytes)
foo.com/cgi-bin/bar?param1=foobar
Not Found The requested URL /cgi-bin/bar was not found on this server.
Cache (70 bytes)
foo.com/Cgi-bIn/BaR?param1=foobar;
Not Found The requested URL /Cgi-bIn/BaR was not found on this server.
Cache (2720 bytes)
httpd.apache.org/docs/misc/FAQ-H.html#rewrite-nocase
How can I use strings with whitespaces in RewriteRule's ENV flag? Where can I find mod_rewrite rulesets which already solve particular URL-related problems? There is a collection of 10 Practical Solutions for URL-Manipulation where you can find all typical solutions the author of 11 mod_rewrite currently knows of. If you have more interesting rulesets which solve particular problems not currently covered in this document, send it to 12 Ralf S. The other webmasters will thank you for avoiding the reinvention of the wheel. Where can I find any published information about URL-manipulations and mod_rewrite? Engelschall about URL-manipulations based on 14 mod_rewrite in the "iX Multiuser Multitasking Magazin" issue #12/96. Why is mod_rewrite so difficult to learn and seems so complicated? First, mod_rewrite itself is a powerful module which can help you in really all aspects of URL rewriting, so it can be no trivial module per definition. And regular expressions itself can be difficult to newbies, while providing the most flexible power to the advanced hacker. On the other hand mod_rewrite has to work inside the Apache API environment and needs to do some tricks to fit there. Or the problem of multiple rewrites in sequence, which is also not handled by the API per design. While the user usually doesn't see anything of this processing, it can be difficult to find problems when some of your RewriteRules seem not to work. What can I do if my RewriteRules don't work as expected? Use "RewriteLog somefile" and "RewriteLogLevel 9" and have a precise look at the steps the rewriting engine performs. This is really the only one and best way to debug your rewriting configuration. Why don't some of my URLs get prefixed with DocumentRoot when using mod_rewrite? Because if there is such a directory, the URL will not get prefixed with DocumentRoot. This behavior looks ugly, but is really important for some other aspects of URL rewriting. How can I make all my URLs case-insensitive with mod_rewrite? The reasons are: first, that, case translations for arbitrary length URLs cannot be done via regex patterns and corresponding substitutions. Second, just making URLs always upper or lower case does not solve the whole problem of case-INSENSITIVE URLs, because URLs actually have to be rewritten to the correct case-variant for the file residing on the filesystem in order to allow Apache to access the file. Try this module to help correct people who use mis-cased URLs. Because you have to enable the engine for every virtual host explicitly due to security concerns. Just add a "RewriteEngine on" to your virtual host configuration parts. How can I use strings with whitespaces in RewriteRule's ENV flag?