Apache 1.3 [unix]: Directives not having effect



  • 1. How to proxy Outlook server with Apache (NTLM issue)
    I have foolishly promised to set up Apache (2.0.49) as a public-facing proxy for an Outlook web mail server. NTLM authentication doesn't get through, apparently because the proxy closes all its connections and the server-nonce is not valid by the time the hashed password gets back. Has anyone beaten this? Grateful thanks for tips or pointers thereto. -- He worked in local radio, which he always used to tell his friends was a lot more interesting than they probably thought. -- D. Adams
  • 2. Apache Jserv problem
    Hello, I have set up Apache JServ on my Linux m/c. I'm running Apache and JServ on Fedora core 3. I installed both Apache and JServ during oracle 9i installation. It has a root zone set up wtih a repository in a directory called servlets which is mapped to localhost/servlet and localhost/servlets, as is the default setup. When I open in a browser, everything works fine. I see the status page, and verify that the JServ servlet is up and running. However, when I try or, i get an Internal Server Error: My Apache log shows [Thu Feb 23 13:31:53 2006] [error] [client ] File does not exist: /servlet/IsItWorking/ Thanks in Advance
  • 3. Redirecting HTTP and non HTTP connections via ports via Apache
    Is there a way to get Apache to reroute HTTP requests to different ports via the url? I setup a web page to listen on a port besides port 80 and 443 because IIS was listening on them, but when the viewer tried to view the site from a web cafe it was blocked. How can the main Apache server be made to transfer the request to a virtual server running on a non standard port? It was IIS I was using but because it was part of an SBS2003 installation I didn't want to replace it with Apache on the main port in case it broke the SBS2003 setup. However I am more interested in the case of Apache, knowing how the same can be done with SBS is a bonus. I am also interested in non HTTP requests, is there a way Apache can listen to the type of header and then reroute the incoming stream to a different port. I don't expect them to connect using standard HTML headers. If Apache can't do it, are there some utilities which are programmed to listen for a variety of common protocol connection headers on a single port and reroute them to the proper applications? It will be of much help in the case of a Remote CCTV viewer which doesn't use any of the standard ports.
  • 4. mod_rewrite and no picture
    Hi I have very easy webshop. There is no options to show blank.jpg if threre is no imgae for particular product. How can I do it with mod rewrite?

Apache 1.3 [unix]: Directives not having effect

Postby RPandyan » Sat, 20 Sep 2003 23:55:19 GMT


I've been experimenting with Apache for the past few days.  I've made
a few changes but they aren't having the desired effect.

1. When entering the site, the user automatically sees index.htm page.
   My Sol: DirectoryIndex index.htm

2. A page in a sub dir is blocked to everybody except a particular IP.
   <Directory /home/rpandyan/apache/htdocs/block>
      Order Deny,Allow
      Deny from all
      Allow james.virtual.com

3. I have password protected a few pages also but that also isn't
   <Directoy /home/rpandyan/apache/htdocs/hidden>
      AuthType Basic
      AuthName "Restricted Files"
      AuthUserFile /home/rpandyan/apache/passwd/passwords
      Require user James

Note: I have made all changes to the httpd.conf file for efficienty
      The Listen directive works [I see the test page]

If anybody knows what I need to do, please let me know.

Re: Apache 1.3 [unix]: Directives not having effect

Postby efflandt » Sun, 21 Sep 2003 08:31:29 GMT

You neglected to mention what error you get in browser or server logs for 
any of these.

That should work (within the scope of the directive), unless you forget to
use a trailing slash on a directory and the client cannot resolve your set
or assumed ServerName.  See apache docs for UseCanonicalName.

You have not said if your server allows everyone or no one.  Does 
james.virtual.com resolve?  If not, you could try using an IP 

Did you generate the passwords file with htpasswd?  What results do you 
get (no password request, or request for password, and will not 
authenticate)?  Note that username and password is case sensitive, so 
"James" is NOT same as "james".

Impossible to tell without knowing what results you get in browser and 
server logs.

David Efflandt - All spam ignored   http://www.**--****.com/ 
 http://www.**--****.com/ ://www.berniesfloral.net/
 http://www.**--****.com/ ://hammer.prohosting.com/~cgi-wiz/

Similar Threads:

1.Apache 1.3 Custome Module not able to get response code 200

I have written a custom module in C that intercepts each request that
is posted to any URL on the server and processes the request body
(method=POST) during the post read-request handling phase.

If the body is okay, I use DECLINED keyword to pass the request on to
the the URL. I am sending the post request through a java program and I
am trying to get the response code by using the
HTTPURLConnection.getResponseCode() method. Unfortunately, I do not get
any response code....while I expect a 200 since the request was
DECLINED by my custom module and passed on to the URL. On the other
hand I have no problem getting the response code if the request was

The server logs have 200 showing that the request was declined and the
URL was hit but I am unable to get a 200 when I use the above mentioned
java method. Also, if I remove my custom module, the java program gets
a 200 as response code. This makes me think that the problem is with my
module and not with the java program.

Does anyone have any idea why this is happening. Any inputs will be


2.Ping from cron not having same effect as ping from console

I'm running a RedHat Enterprise 2.1 server as a group development
platform.  We're having some network problems which are being worked
on, but right now I need a workaround.  The problem is that this
server drops off of the network a couple of times a day.  I've found
that if I just ping another server from that server it comes back on
the network, everybody can see it and everything is fine.

To keep the server on the network I set up a cron job to ping another
server every two minutes.  I can see this ping running every two
minutes with "ps -e | grep ping".  However, the machine still drops
off of the network.  When the server drops off of the network I wait
until I see the cron ping as above and then verify that it is still
off of the network.  So the cron ping doesn't get the machine back on
the network.  Then I do a ping from a console and the server comes
back on the network.

For some reason the cron ping doesn't have the same effect that a ping
from the console does.  The crontab ping entry is by the same user
that I am logged in as when I do the ping from the console.

Anyone have any suggestions?  Why does a ping from the console have a
different effect than a ping from cron.

3.Apache 1.3 - suexec permission problems


I am running the 1.3 version of Apache with SuEXEC to run CGI scripts
under another username then the Apache webserver username.

Everything runs fine, except for one thing. All my CGI scripts have to
be chmod'ed 755 to work.

My config:

<VirtualHost xxx.xxx.xxx.xxx>
    ServerAdmin  XXXX@XXXXX.COM 
    DocumentRoot /var/www/htdocs/xxx.xxx.xxx/www/
    ServerName xxx.xxx.xxx
    ErrorLog /var/www/logs/websites/xxx.xxx.xxx-error_log
    CustomLog /var/www/logs/websites/xxx.xxx.xxx-access_log common
    ScriptAlias /cgi-bin/ "/var/www/htdocs/xxx.xxx.xxx/cgi-bin/"
    <Directory "/var/www/htdocs/xxx.xxx.xxx/cgi-bin/">
            Options ExecCGI
    User blah
    Group blah

/var/www/htdocs/xxx.xxx.xxx/cgi-bin/ : chown'ed by blah/blah, chmod'ed

/var/www/htdocs/xxx.xxx.xxx/cgi-bin/test.cgi : chown'ed by blah/blah

When I chmod test.cgi to 755 everything works fine, when I chmod it to
754/751/750 it does _not_ work (I get an 403 error).

I can't find any errors except for the 403 permission denied error
which I don't understand because 750 should be sufficient right?

Does anybody have any idea why I get this 403 error and how I can fix

Your help is really appreciated,


4.Apache 1.3 & ProxyPass

5.apache 1.3 : mod_proxy/mod_rewrite, timeouts and retries?

6. Apache 1.3 + mod_perl configuration with multiple LocationMatch

7. Apache 1.3 + PHP 4.x + SSL

8. Apache 1.3 Block an IP-Range.

Return to unix


Who is online

Users browsing this forum: No registered users and 95 guest