1. Configuring SVN and Apache

    Date: 06/24/08     Keywords: apache

    svn came installed on my RHEL5 box and I am working on configuring the system for use with Apache.

    I am using the following tutorial: http://www.howtoforge.com/apache_subversion_repository_p2

    Everything seemed OK (no errors) until the section "Setting up the initial repository layout:". When issuing the third command:

    svn import /tmp/subversion-layout/ http://127.0.0.1/subversion/


    The system returned the following error:

    [user@myserver directory]# svn import -m /tmp/svnmessage /tmp/subversion-layout/ http://127.0.0.1/subversion/
    svn: PROPFIND request failed on '/subversion'
    svn: PROPFIND of '/subversion': 405 Method Not Allowed (http://127.0.0.1)

    I did not restart apache before issing the svn import command - is that necessary? Also, I created all of the directories as root. Would that cause this problem?

    Source: https://apache.livejournal.com/41804.html

  2. Sporadic network timeouts

    Date: 04/17/08     Keywords: apache

    So, three sites are hosted on a single RHEL5 box, with Apache 2x serving pages. Apache is using IP based virtual hosts.

    Every once in a blue moon I try to access one of the sites and receive network timeout errors (doesn't matter if I access via IP or domain name). The other two sites are still up and serving pages quickly - no slowdown or timeouts.

    After several minutes the network timeouts go away on their own.

    Any ideas?


    Source: http://community.livejournal.com/apache/41725.html

  3. Sporadic network timeouts

    Date: 04/17/08     Keywords: apache

    So, three sites are hosted on a single RHEL5 box, with Apache 2x serving pages. Apache is using IP based virtual hosts.

    Every once in a blue moon I try to access one of the sites and receive network timeout errors (doesn't matter if I access via IP or domain name). The other two sites are still up and serving pages quickly - no slowdown or timeouts.

    After several minutes the network timeouts go away on their own.

    Any ideas?


    Source: http://apache.livejournal.com/41725.html

  4. Sporadic network timeouts

    Date: 04/17/08     Keywords: apache

    So, three sites are hosted on a single RHEL5 box, with Apache 2x serving pages. Apache is using IP based virtual hosts.

    Every once in a blue moon I try to access one of the sites and receive network timeout errors (doesn't matter if I access via IP or domain name). The other two sites are still up and serving pages quickly - no slowdown or timeouts.

    After several minutes the network timeouts go away on their own.

    Any ideas?


    Source: https://apache.livejournal.com/41725.html

  5. Apache serving non-php files as php?

    Date: 04/03/08     Keywords: php, apache

    My server seems to think the following is PHP and serve it as such:

    http://www.perturb.org/tmp/test.php.foo.bar

    However... the same file (symlinked)

    http://www.perturb.org/tmp/test.php.txt

    Is served as text. In fact it appears that apache servers the content as whatever the "last recognizable" extension. Shouldn't apache only server files that END in .php as php files?

    The configuration is very simple:

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Source: http://community.livejournal.com/apache/41268.html

  6. Apache serving non-php files as php?

    Date: 04/03/08     Keywords: php, apache

    My server seems to think the following is PHP and serve it as such:

    http://www.perturb.org/tmp/test.php.foo.bar

    However... the same file (symlinked)

    http://www.perturb.org/tmp/test.php.txt

    Is served as text. In fact it appears that apache servers the content as whatever the "last recognizable" extension. Shouldn't apache only server files that END in .php as php files?

    The configuration is very simple:

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Source: http://apache.livejournal.com/41268.html

  7. Apache serving non-php files as php?

    Date: 04/03/08     Keywords: php, apache

    My server seems to think the following is PHP and serve it as such:

    http://www.perturb.org/tmp/test.php.foo.bar

    However... the same file (symlinked)

    http://www.perturb.org/tmp/test.php.txt

    Is served as text. In fact it appears that apache servers the content as whatever the "last recognizable" extension. Shouldn't apache only server files that END in .php as php files?

    The configuration is very simple:

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Source: https://apache.livejournal.com/41268.html

  8. Apache SSL, removing passphrase prompt

    Date: 03/05/08     Keywords: apache

    When my system reboots Apache needs the passphrase to start. I'd like to remove this prompt so the server can start without human intervention. So, according to the docs I can do this:

    openssl rsa -in server.key.current -out server.key.new

    But I wasn't prompted to enter my passphrase when issuing this command.  The resulting outfile is identical to server.key.current.
    Suggestions?

    Source: http://community.livejournal.com/apache/41133.html

  9. Apache SSL, removing passphrase prompt

    Date: 03/05/08     Keywords: apache

    When my system reboots Apache needs the passphrase to start. I'd like to remove this prompt so the server can start without human intervention. So, according to the docs I can do this:

    openssl rsa -in server.key.current -out server.key.new

    But I wasn't prompted to enter my passphrase when issuing this command.  The resulting outfile is identical to server.key.current.
    Suggestions?

    Source: http://apache.livejournal.com/41133.html

  10. Apache SSL, removing passphrase prompt

    Date: 03/05/08     Keywords: apache

    When my system reboots Apache needs the passphrase to start. I'd like to remove this prompt so the server can start without human intervention. So, according to the docs I can do this:

    openssl rsa -in server.key.current -out server.key.new

    But I wasn't prompted to enter my passphrase when issuing this command.  The resulting outfile is identical to server.key.current.
    Suggestions?

    Source: https://apache.livejournal.com/41133.html

  11. IE7 cert mismatch errors

    Date: 03/03/08     Keywords: security

    Some of our IE7 users receive security certificate mismatch warnings with every secure page view on subdomain.domain.net.  The cert was originally issued to www.domain.net. 

     

    Is it possible to add aliases to existing certificates (my hunch is no, but I'm not well versed on them)? 

    Source: http://community.livejournal.com/apache/40574.html

  12. IE7 cert mismatch errors

    Date: 03/03/08     Keywords: security

    Some of our IE7 users receive security certificate mismatch warnings with every secure page view on subdomain.domain.net.  The cert was originally issued to www.domain.net. 

     

    Is it possible to add aliases to existing certificates (my hunch is no, but I'm not well versed on them)? 

    Source: http://apache.livejournal.com/40574.html

  13. IE7 cert mismatch errors

    Date: 03/03/08     Keywords: security

    Some of our IE7 users receive security certificate mismatch warnings with every secure page view on subdomain.domain.net.  The cert was originally issued to www.domain.net. 

     

    Is it possible to add aliases to existing certificates (my hunch is no, but I'm not well versed on them)? 

    Source: https://apache.livejournal.com/40574.html

  14. How do I specify the server's document root?

    Date: 02/05/08     Keywords: php, web, apache

    I work on a Macintosh running Apache 2.2.6 for a lot of website development projects in PHP. Up until now, when it was necessary to specify a document root I would just change the value of $_SERVER['DOCUMENT_ROOT'] ... but that's really not that functional, as I still cannot do something like link an image or link like /index.php.

    I've been googling for a way to change Apache's document root based on folder structure but thus far my efforts have just caused apache to fail until I undo my changes. What I'm trying to do is set it so that when you go to say "127.0.0.1/Bob" that "Bob" and all its subsequent directories might have a doc root of /httpd/Documents/Bob" but if you go to "127.0.0.1/Mary" there would be a different document root.

    Is this possible?

    Source: http://community.livejournal.com/apache/40442.html

  15. 404 for user pages

    Date: 12/21/07     Keywords: apache

    I've thought of adding MediaWiki to my site just to make it super easy to add content whenever I wanted. I know I could make Apache serve the wiki user page if the ~username URL was requested, but is it possible to make it do that only if it couldn't be found in the more traditional location (like his home dir) first? Would that require some kind of handler script?

    Source: http://community.livejournal.com/apache/39707.html

  16. 404 for user pages

    Date: 12/21/07     Keywords: apache

    I've thought of adding MediaWiki to my site just to make it super easy to add content whenever I wanted. I know I could make Apache serve the wiki user page if the ~username URL was requested, but is it possible to make it do that only if it couldn't be found in the more traditional location (like his home dir) first? Would that require some kind of handler script?

    Source: http://apache.livejournal.com/39707.html

  17. 404 for user pages

    Date: 12/21/07     Keywords: apache

    I've thought of adding MediaWiki to my site just to make it super easy to add content whenever I wanted. I know I could make Apache serve the wiki user page if the ~username URL was requested, but is it possible to make it do that only if it couldn't be found in the more traditional location (like his home dir) first? Would that require some kind of handler script?

    Source: https://apache.livejournal.com/39707.html

  18. More advanced mod-rewrite

    Date: 11/16/07     Keywords: php, html, web, hosting

    I've recently been switching my site over from a bunch of static HTML pages to PHP using Smarty templating

    I've decided to use mod_rewrite to make more attractive and search-engine friendly canonical URLs

    I've chosen this format:

    http://example.com/some-words/some-more-words/
    http://example.com/some-words/
    (both are valid, up to 2 such sections as shown)


    Notice no ".html"/".php". This is rewritten to

    index.php?page=some-words/some-more-words/


    The problems:

    In the meantime, while I transition to this format, I'm keeping my old static pages up, because there's a lot of inbound links to them that aren't going to get changed (little websites, various forum and blog posts, etc)

    I'll eventually get my pages switched over, but in the meantime there's at least one directory I would like to exclude from rewriting. Is there a way I can omit specific URLs from rewriting? I'd like for "example.com/particular-directory/" to be exempt from being rewritten

    Another possibly related problem is that I have a few other domains hosted as "add-on" domains to the same hosting package, so their contents are in a subdirectory. So, of course, the URL re-writing directive cascades down and breaks those domains completely. Of course, it only took a few seconds to fix by adding an .htaccess to each subdirectory saying "RewriteEngine Off", but what if I wanted a separate URL-rewriting scheme on those directories? Can I tell it to ignore any other rules that might be applied and start fresh?


    My current rewriting rule looks like this:

    RewriteEngine On
    RewriteRule ^/?([a-zA-Z0-9\-]+/?[a-zA-Z0-9\-]+/?)$ index.php?page=$1 [L]


    Is there a flag or other rules that could help me?

    (Note: I'm on shared hosting so http.conf etc are not an option)

    Source: http://community.livejournal.com/apache/39655.html

  19. More advanced mod-rewrite

    Date: 11/16/07     Keywords: php, html, web, hosting

    I've recently been switching my site over from a bunch of static HTML pages to PHP using Smarty templating

    I've decided to use mod_rewrite to make more attractive and search-engine friendly canonical URLs

    I've chosen this format:

    http://example.com/some-words/some-more-words/
    http://example.com/some-words/
    (both are valid, up to 2 such sections as shown)


    Notice no ".html"/".php". This is rewritten to

    index.php?page=some-words/some-more-words/


    The problems:

    In the meantime, while I transition to this format, I'm keeping my old static pages up, because there's a lot of inbound links to them that aren't going to get changed (little websites, various forum and blog posts, etc)

    I'll eventually get my pages switched over, but in the meantime there's at least one directory I would like to exclude from rewriting. Is there a way I can omit specific URLs from rewriting? I'd like for "example.com/particular-directory/" to be exempt from being rewritten

    Another possibly related problem is that I have a few other domains hosted as "add-on" domains to the same hosting package, so their contents are in a subdirectory. So, of course, the URL re-writing directive cascades down and breaks those domains completely. Of course, it only took a few seconds to fix by adding an .htaccess to each subdirectory saying "RewriteEngine Off", but what if I wanted a separate URL-rewriting scheme on those directories? Can I tell it to ignore any other rules that might be applied and start fresh?


    My current rewriting rule looks like this:

    RewriteEngine On
    RewriteRule ^/?([a-zA-Z0-9\-]+/?[a-zA-Z0-9\-]+/?)$ index.php?page=$1 [L]


    Is there a flag or other rules that could help me?

    (Note: I'm on shared hosting so http.conf etc are not an option)

    Source: http://apache.livejournal.com/39655.html

  20. More advanced mod-rewrite

    Date: 11/16/07     Keywords: php, html, web, hosting

    I've recently been switching my site over from a bunch of static HTML pages to PHP using Smarty templating

    I've decided to use mod_rewrite to make more attractive and search-engine friendly canonical URLs

    I've chosen this format:

    http://example.com/some-words/some-more-words/
    http://example.com/some-words/
    (both are valid, up to 2 such sections as shown)


    Notice no ".html"/".php". This is rewritten to

    index.php?page=some-words/some-more-words/


    The problems:

    In the meantime, while I transition to this format, I'm keeping my old static pages up, because there's a lot of inbound links to them that aren't going to get changed (little websites, various forum and blog posts, etc)

    I'll eventually get my pages switched over, but in the meantime there's at least one directory I would like to exclude from rewriting. Is there a way I can omit specific URLs from rewriting? I'd like for "example.com/particular-directory/" to be exempt from being rewritten

    Another possibly related problem is that I have a few other domains hosted as "add-on" domains to the same hosting package, so their contents are in a subdirectory. So, of course, the URL re-writing directive cascades down and breaks those domains completely. Of course, it only took a few seconds to fix by adding an .htaccess to each subdirectory saying "RewriteEngine Off", but what if I wanted a separate URL-rewriting scheme on those directories? Can I tell it to ignore any other rules that might be applied and start fresh?


    My current rewriting rule looks like this:

    RewriteEngine On
    RewriteRule ^/?([a-zA-Z0-9\-]+/?[a-zA-Z0-9\-]+/?)$ index.php?page=$1 [L]


    Is there a flag or other rules that could help me?

    (Note: I'm on shared hosting so http.conf etc are not an option)

    Source: https://apache.livejournal.com/39655.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home