1. For anyone interested / Linux Users

    Date: 09/06/05     Keywords: no keywords

    Linspire.com is offering a free download of Linspire Five-0. This offer ends on 9/6/05. The coupon for the discount is "freespire". You must be patient due to the increased activity of there servers. If you have BitTorrent you can download almost immediately.

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

  2. mod_rewrite problem

    Date: 08/20/05     Keywords: php

    Hi everybody! I'm new here and trying to write a mod_rewrite rule. I added the following to httpd.conf:

    RewriteEngine on
    RewriteRule ^/perfumes/([0-9]+)/([A-Zn])/([126])/([0-9]*)$ /items/perfumes.php?product=$1&selection=$2&category=$3&page=$4

    In loading modules above that is:

    LoadModule rewrite_module libexec/mod_rewrite.so

    But, when I try to go to

    http://www.perfumesandpampering.com/perfumes/322/A/2/1

    I get the error "The requested URL /perfumes/322/A/2/1 was not found on this server."

    Any idea what could be causing this problem or do I need to provide more information?

    Source: http://www.livejournal.com/community/apache/25019.html

  3. mod_rewrite problem

    Date: 08/20/05     Keywords: php

    Hi everybody! I'm new here and trying to write a mod_rewrite rule. I added the following to httpd.conf:

    RewriteEngine on
    RewriteRule ^/perfumes/([0-9]+)/([A-Zn])/([126])/([0-9]*)$ /items/perfumes.php?product=$1&selection=$2&category=$3&page=$4

    In loading modules above that is:

    LoadModule rewrite_module libexec/mod_rewrite.so

    But, when I try to go to

    http://www.perfumesandpampering.com/perfumes/322/A/2/1

    I get the error "The requested URL /perfumes/322/A/2/1 was not found on this server."

    Any idea what could be causing this problem or do I need to provide more information?

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

  4. HTTPS on Redundant Servers

    Date: 08/10/05     Keywords: web, linux, apache

    [Cross posted to '[info]'apache, '[info]'httpd, '[info]'linux]

    I've been given the assignment to setup dual web servers behind a ServerIron load balancer in an effort to improve the reliability of my company's website. Unfortunately, I have never done this before where I had to deal with https on redundant servers. My question may be quite simple, but I don't know the answer.

    How do I get secure certificates for multiple servers with the same common name? Creating the CSR is the easy part, but last time I tried to get multiple certificates for the same common name, it failed as there was already one certificate created for that name.

    Source: http://www.livejournal.com/community/apache/24184.html

  5. HTTPS on Redundant Servers

    Date: 08/10/05     Keywords: web, linux, apache

    [Cross posted to '[info]'apache, '[info]'httpd, '[info]'linux]

    I've been given the assignment to setup dual web servers behind a ServerIron load balancer in an effort to improve the reliability of my company's website. Unfortunately, I have never done this before where I had to deal with https on redundant servers. My question may be quite simple, but I don't know the answer.

    How do I get secure certificates for multiple servers with the same common name? Creating the CSR is the easy part, but last time I tried to get multiple certificates for the same common name, it failed as there was already one certificate created for that name.

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

  6. Somthing of an apache newb.

    Date: 07/28/05     Keywords: apache

    I've been running an apache server for almost a year now, when suddenly recently I noticed my server was innaccessable. After trying a few basic "kick it" techniques (restarting and such.) I decided to just shut the whole thing down and reboot it. This is what I get:

    ______

    (OS 10048)Only one usage of each socket address (protocol/network address/port)
    is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Note the errors or messages above, and press the key to exit. 26...
    ______


    So what I figure is that perhaps somthing else is serving using port 80, I thought I knew what this was, but upon uninstall of that program the problem persists.


    If anybody has any sugguestions, please post them.

    Source: http://www.livejournal.com/community/apache/23549.html

  7. Somthing of an apache newb.

    Date: 07/28/05     Keywords: apache

    I've been running an apache server for almost a year now, when suddenly recently I noticed my server was innaccessable. After trying a few basic "kick it" techniques (restarting and such.) I decided to just shut the whole thing down and reboot it. This is what I get:

    ______

    (OS 10048)Only one usage of each socket address (protocol/network address/port)
    is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    Note the errors or messages above, and press the key to exit. 26...
    ______


    So what I figure is that perhaps somthing else is serving using port 80, I thought I knew what this was, but upon uninstall of that program the problem persists.


    If anybody has any sugguestions, please post them.

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

  8. semophores

    Date: 07/18/05     Keywords: crm, apache

    I often get this problem where apache (and apache-ssl) end up using so many semophores I can't launch them again or they even shut themselves off.

    I'm currently running both servers as seperate daemons rather than using apache with mod-ssl. Don't ask me why it just ended up that way. Anyway I've had this problem before I installed apache-ssl so I'm pretty sure it's not the fact that I'm running both that's causing it.

    I can clear the semophores by shutting down the servers and issueing this command:

    ipcs -s -t | cut -f 1 -d " " | egrep "^[0-9]+$" | xargs ipcrm sem

    but I'd like to hear if anyone else has had this kind of issue and if anyone has come up with a solution. I'd prefer to get it to run without me having to restart the servers every few days.

    Source: http://www.livejournal.com/community/apache/23285.html

  9. semophores

    Date: 07/18/05     Keywords: crm, apache

    I often get this problem where apache (and apache-ssl) end up using so many semophores I can't launch them again or they even shut themselves off.

    I'm currently running both servers as seperate daemons rather than using apache with mod-ssl. Don't ask me why it just ended up that way. Anyway I've had this problem before I installed apache-ssl so I'm pretty sure it's not the fact that I'm running both that's causing it.

    I can clear the semophores by shutting down the servers and issueing this command:

    ipcs -s -t | cut -f 1 -d " " | egrep "^[0-9]+$" | xargs ipcrm sem

    but I'd like to hear if anyone else has had this kind of issue and if anyone has come up with a solution. I'd prefer to get it to run without me having to restart the servers every few days.

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

  10. Another Content Negotiation Problem (Only This One's Real!)

    Date: 07/17/05     Keywords: apache

    I've got a question about content negotiation... Basically, I'd like to know if there's a way to make type-maps and the MultiViews option work side-by-side. I'd like to utilize both within the same directory. Right now, the only way I can access a resource via type-map is by specifying the .var extension in the URL, even though ".var" isn't part of the resource name.

    If I don't specify the .var extension in the URL, then MultiViews takes over. To test things out, if you visit http://img.cparker15.com/bushcheney04 you get one of three formats of images, all with the same base (resource) name; a PNG, a GIF, or a JPEG. If you visit http://img.cparker15.com/bushcheney04.var, then you get a text file, which I've specified in the type-map (.var file) to have the highest "quality".

    Here is my type-map file:

    URI: bushcheney04

    URI: bushcheney04.txt
    Content-type: text/plain; qs=0.800

    URI: bushcheney04.png
    Content-type: image/png; qs=0.600

    URI: bushcheney04.gif
    Content-type: image/gif; qs=0.400

    URI: bushcheney04.jpg
    Content-type: image/jpeg; qs=0.200
    Any ideas on how I can get this to work the way I need it to work? Basically, I need type-maps to be processed before MultiViews, and if a type-map doesn't exist, then MultiViews takes over and effectively creates its own type-map. The setup that I need isn't explained in any of the documentation.

    Here's an excerpt from one of my conf files in sites-available:
            
                    AddHandler type-map .var
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            
    cross-posted from #apache on DALnet and to '[info]'cparker

    Source: http://www.livejournal.com/community/apache/22990.html

  11. Another Content Negotiation Problem (Only This One's Real!)

    Date: 07/17/05     Keywords: apache

    I've got a question about content negotiation... Basically, I'd like to know if there's a way to make type-maps and the MultiViews option work side-by-side. I'd like to utilize both within the same directory. Right now, the only way I can access a resource via type-map is by specifying the .var extension in the URL, even though ".var" isn't part of the resource name.

    If I don't specify the .var extension in the URL, then MultiViews takes over. To test things out, if you visit http://img.cparker15.com/bushcheney04 you get one of three formats of images, all with the same base (resource) name; a PNG, a GIF, or a JPEG. If you visit http://img.cparker15.com/bushcheney04.var, then you get a text file, which I've specified in the type-map (.var file) to have the highest "quality".

    Here is my type-map file:

    URI: bushcheney04

    URI: bushcheney04.txt
    Content-type: text/plain; qs=0.800

    URI: bushcheney04.png
    Content-type: image/png; qs=0.600

    URI: bushcheney04.gif
    Content-type: image/gif; qs=0.400

    URI: bushcheney04.jpg
    Content-type: image/jpeg; qs=0.200
    Any ideas on how I can get this to work the way I need it to work? Basically, I need type-maps to be processed before MultiViews, and if a type-map doesn't exist, then MultiViews takes over and effectively creates its own type-map. The setup that I need isn't explained in any of the documentation.

    Here's an excerpt from one of my conf files in sites-available:
            
                    AddHandler type-map .var
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            
    cross-posted from #apache on DALnet and to '[info]'cparker

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

  12. mod_rewrite problem

    Date: 07/17/05     Keywords: linux

    Environment:

    • Fedora Core release 3 (FC3); Kernel 2.6.11-1.27_FC3smp on an i686
    • httpd-2.0.52-3.1 (the most recent RPM for FC3 that I can find)
    • I host a couple of personal sites on my server, handled as VirtualHosts in httpd.conf
    Problem: I've installed WordPress (v1.5.1.3) today and set up a VirtualHost (http://blog.henman.ca/) to point to it - all fine so far. I set up the Permalink Structure as "/%year%/%monthnum%/%day%/%postname%/" (their recommended format to end up with "http://blog.henman.ca/2005/07/16/sample-post/"); no errors reported and a .htaccess file was created in the blog's directory. Only thing is, when I click on the link for the first/test post I get a 404 error: "The requested URL /2005/07/16/hello-world/ was not found on this server."

    I've added a RewriteLog line to httpd.conf but the output just shows a lot of "pass through" entries and nothing else, which makes me wonder if mod_rewrite is installed/enabled - how can I tell? Everything I've read says it's installed by default and httpd.conf contains both "LoadModule rewrite_module modules/mod_rewrite.so" and "RewriteEngine on" - should there be anything else?

    I don't see any errors/warnings when I restart the httpd service. Oh, and I've checked that mod_rewrite.so exists. :)


    (Before anyone asks me to post the httpd.conf file, it's 1275 lines so it might be easier if you can be specific about which bits you want to see.)


    [Cross-posted to '[info]'fedora_linux.]

    Source: http://www.livejournal.com/community/apache/22550.html

  13. mod_rewrite problem

    Date: 07/17/05     Keywords: linux

    Update: There was an "AllowOverride None" in the httpd.conf that was preventing the .htaccess file from being used.


    Environment:

    • Fedora Core release 3 (FC3); Kernel 2.6.11-1.27_FC3smp on an i686
    • httpd-2.0.52-3.1 (the most recent RPM for FC3 that I can find)
    • I host a couple of personal sites on my server, handled as VirtualHosts in httpd.conf
    Problem: I've installed WordPress (v1.5.1.3) today and set up a VirtualHost (http://blog.henman.ca/) to point to it - all fine so far. I set up the Permalink Structure as "/%year%/%monthnum%/%day%/%postname%/" (their recommended format to end up with "http://blog.henman.ca/2005/07/16/sample-post/"); no errors reported and a .htaccess file was created in the blog's directory. Only thing is, when I click on the link for the first/test post I get a 404 error: "The requested URL /2005/07/16/hello-world/ was not found on this server."

    I've added a RewriteLog line to httpd.conf but the output just shows a lot of "pass through" entries and nothing else, which makes me wonder if mod_rewrite is installed/enabled - how can I tell? Everything I've read says it's installed by default and httpd.conf contains both "LoadModule rewrite_module modules/mod_rewrite.so" and "RewriteEngine on" - should there be anything else?

    I don't see any errors/warnings when I restart the httpd service. Oh, and I've checked that mod_rewrite.so exists. :)


    (Before anyone asks me to post the httpd.conf file, it's 1275 lines so it might be easier if you can be specific about which bits you want to see.)


    [Cross-posted to '[info]'fedora_linux.]

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

  14. Content Negotiation in Apache 2

    Date: 07/10/05     Keywords: php, html, apache

    I've set up content negotiation according to http://httpd.apache.org/docs-2.0/content-negotiation.html (using Options MultiViews in my Directory sections), and it all sort of works. Kind of.

    To test things, I've created a file in the root of my server called phpinfo.php. In it, I'm calling PHP's phpinfo() function. If I call the file with its extension, I get the expected results. However, if I call the file without its extension, I get a prompt to download a file of type appliation/x-httpd-php named phpinfo.

    Here is the relevant section of /etc/apache2/sites-enabled/000-default (which is a link to /etc/apache2/sites-available/default):

            DocumentRoot /var/www/
            
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
                    # This directive allows us to have apache2's default start page
                    # in /apache2-default/, but still have / go to the right place
                    RedirectMatch ^/$ /apache2-default/
            
    I have the information for parsing PHP in /etc/apache2/apache2.conf (actually, it was already there; I merely had to uncomment it):
    AddCharset shift_jis   .sjis
    
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    
    AddType application/x-tar .tgz
    The reasoning behind using MultiViews right now instead of type-maps is because I don't want to have to define type-maps for every single file/resource I'm going to provide. If a type-map doesn't exist for a resource, content negotiation will fall back to MultiViews.

    Am I missing something? Obviously, I am. Why am I being prompted to download the file? Why isn't the file being parsed by the server, like I'm telling it to?

    NOTE: I had content negotiation working with Apache 1.3. It was only when I upgraded to Apache 2 that it stopped working as expected.

    cross-posted to '[info]'cparker

    Source: http://www.livejournal.com/community/apache/22070.html

  15. Content Negotiation in Apache 2

    Date: 07/10/05     Keywords: php, html, apache

    I've set up content negotiation according to http://httpd.apache.org/docs-2.0/content-negotiation.html (using Options MultiViews in my Directory sections), and it all sort of works. Kind of.

    UPDATE: Resolved; see note.

    To test things, I've created a file in the root of my server called phpinfo.php. In it, I'm calling PHP's phpinfo() function. If I call the file with its extension, I get the expected results. However, if I call the file without its extension, I get a prompt to download a file of type appliation/x-httpd-php named phpinfo.

    Here is the relevant section of /etc/apache2/sites-enabled/000-default (which is a link to /etc/apache2/sites-available/default):

            DocumentRoot /var/www/
            
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
                    # This directive allows us to have apache2's default start page
                    # in /apache2-default/, but still have / go to the right place
                    RedirectMatch ^/$ /apache2-default/
            
    I have the information for parsing PHP in /etc/apache2/apache2.conf (actually, it was already there; I merely had to uncomment it):
    AddCharset shift_jis   .sjis
    
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    
    AddType application/x-tar .tgz
    The reasoning behind using MultiViews right now instead of type-maps is because I don't want to have to define type-maps for every single file/resource I'm going to provide. If a type-map doesn't exist for a resource, content negotiation will fall back to MultiViews.

    Am I missing something? Obviously, I am. Why am I being prompted to download the file? Why isn't the file being parsed by the server, like I'm telling it to?

    NOTE: I had content negotiation working with Apache 1.3. It was only when I upgraded to Apache 2 that it stopped working as expected.

    NOTE: I've further edited my configuration, and I've noticed something very peculiar. Both my machine's IP address and cparker15.com point to the same place now. If I call phpinfo (without the extension) from cparker15.com, everything works as expected. However, if I swap cparker15.com for the IP address, I get a prompt to download the file. Any ideas?

    NOTE: Nevermind! I cleared Firefox's cache and tried again and all works now as expected. Thanks go to sub and TBF in #apache on EFnet for their help diagnosing my "problem".

    cross-posted to '[info]'cparker

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

  16. FilesMatch

    Date: 06/22/05     Keywords: apache

    Hi!

    I have record


    ...


    in my .htaccess file. Writing it, I tryed to match only requests, that do not contain "~". But it does not work - for example, request "/~aaa" match this rule. Don't anybody know why?

    Thanks in advance, Michael.

    P.S. I have Apache/1.3.31 (Win32)

    Source: http://www.livejournal.com/community/apache/21967.html

  17. Redirect confusion

    Date: 06/19/05     Keywords: no keywords

    Hi There! This morning I set up a .htaccess redirect on my domain. The redirect works when one puts in http://sitename.com however it does not work when one puts in
    http://www.sitename.com

    It is important that the redirect works with either address. How do I make it work with the additional www? I hope it's something simple that I've overlooked however I've tried almost everything I could think of :(

    Currently Playing on Radio Mirari: Episode 18: Creating Your Company Pt 4 - The Cubicle Escape Pod

    Source: http://www.livejournal.com/community/apache/21758.html

  18. Transparent Authentication with Apache and NT Authentication?

    Date: 06/16/05     Keywords: php, html, web, linux, apache

    Hey all! I'm a newbie with .htaccess and authentication, and I'm trying to set up some transparent authentication on an Win 32 web Server.

    It's like this: We have an intranet and we wish to protect our precious admin pages. I have the folder protected with an .htacess file that references a user/pass file, (Everything works just fine this way,) but we would like to modify it as follows:

    We are using Apache 2.0.53 and using the module mod_auth_sspi.so for NT authenticaion. This module let's us capture the NT usernames in an environment variable. (Which makes it convenient for saying "hi" to people through our PHP CGI's.) What we would like to do is restrict access to the admin folder without having any of the administrators enter a user and pass everytime they a'wander to an admin page. So basically,

    - how can we get .htaccess to reference the environment variable for the username? (I'm assuming that's a possibility.)

    - How can we set it up so that it doesn't ask for a user/pass, but rather just blocks out non-admins? (If that's even possible!)

    One way that we have tried to do this already is by using the mod_ntml module, which would give us the ability to perform transparent authentication, but unfortunately the only available binary of this module is only compatible with Apache 1.3. If you try using it with 2.0, the server won't restart. There is a mod_ntml available for Apache 2.0, but it's only an uncompiled linux version. (At least the only ones I've found have been.) What I need is either another way of setting up this transparent authenticaion, or I need to get my hands on a binary version of mod_ntml 2.0 for Win 32. (Still scouring the internet, and have e-mailed someone at Sourceforge.net.)

    My .htaccess file is very basic, since I'm new to this. Here it is:

    authtype Basic
    authname "OUR_INTRANET"
    authuserfile /html/auth/qausers.pas

    Order allow,deny
    allow from none
    require valid-user
    satisfy any

    Thanks everybody!

    Source: http://www.livejournal.com/community/apache/21451.html

  19. OT: ProFTPD Community

    Date: 06/04/05     Keywords: apache

    I've created a ProFTPD community, '[info]'proftpd. It is meant to mirror '[info]'apache in style and in purpose, only for ProFTPD instead of Apache.

    I figured members of this community would appreciate knowing about a ProFTPD community. If a community promotion such as this is unwelcome, please accept my apologies--let me know and I will delete this entry ASAP.

    Source: http://www.livejournal.com/community/apache/21104.html

  20. Dynamic Subdomain Generation

    Date: 06/04/05     Keywords: css, xml, web, apache

    I've been looking around, trying to find information about how I should go about setting up a system for dynamic subdomain generation. Here's the way I currently have to create a new subdomain:

    1. Add the Virtual Host to httpd.conf
    2. Request that the subdomain be added to my Web host's DNS (I'm using a VDS)
    3. Wait for the changes to propagate
    4. Hope that what I asked for is what I really wanted
    5. GOTO STEP 1 As Needed
    I feel that I should be able to create subdomains (img.cparker15.com, xml.cparker15.com, css.cparker15.com, dtd.cparker15.com, etc.) on the fly. Is there a way to accomplish this with Apache and/or an Apache module?

    I've heard things about mod_rewrite, but I don't know where to begin, if mod_rewrite is even a viable solution.

    Source: http://www.livejournal.com/community/apache/20897.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