[users@httpd] Test

2018-12-21 Thread Tim Johnson
Please disregard.
thanks
-- 
Tim Johnson
http://www.tj49.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Scriptalias redirect not working on ubuntu 14.04

2015-03-30 Thread Tim Johnson
* Tim Johnson  [150330 17:56]:
> On ubuntu 14.04, I have made the following modifications to
> 
> What else to I need to do?
> 
> thanks
  I should had added that it appears that cgi-bin may be be enabled
  at all. If I set the ScriptAlias value back to the default -
  /usr/lib/cgi-bin and restart apache I get a "not found error"
  also.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Scriptalias redirect not working on ubuntu 14.04

2015-03-30 Thread Tim Johnson
On ubuntu 14.04, I have made the following modifications to
/etc/apache2/conf-available :
[code begins]


Define ENABLE_USR_LIB_CGI_BIN



Define ENABLE_USR_LIB_CGI_BIN



#ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /cgi-bin/ /home/http/run/
#

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted



[code ends]

I.E. /usr/lib/cgi-bin is changed to /home/http/run

A simple shell script named 'cgitest' is provided and is set as executable.
After pointing the browser to http://localhost/cgi-bin/cgitest, I get a "not
found" error. If I point the browser to http://localhost/run/cgitest,
I get the code for cgitest, _not_ the output.

What else to I need to do?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] apache prints python code rather than executes (fastcgi)

2013-02-27 Thread Tim Johnson
* Igor Cicimov  [130227 07:11]:
> On 27/02/2013 11:49 AM, "Tim Johnson"  wrote:
> Try adding
> Options +ExecCGI
  Hi Again Igor :
  As I responded before, that was not the solution. 
  I changed 
  AddHandler fcgid-script .fcgi
  AddHandler fastcgi-script .fcgi
  And now Apache is actually attempting to execute the script.
  There's another problem, but now apache is giving me (somewhat)
  meaningful error messages, so I will trouble - shoot them and post
  under a new thread if I am stumped (which is likely)
  thanks again for you response
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] apache prints python code rather than executes (fastcgi)

2013-02-27 Thread Tim Johnson
* Igor Cicimov  [130227 07:11]:
> On 27/02/2013 11:49 AM, "Tim Johnson"  wrote:
> > new to fastcgi (note: fastcgi is enabled).
> >
> Try adding
> Options +ExecCGI
  Thanks Igor, but that didn't change things (had tried in past)
  regards
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] apache prints python code rather than executes (fastcgi)

2013-02-26 Thread Tim Johnson
Using apache on Mac OSX 10.7.
I have a test django application with a executable file named

index.fcgi (permissions = 755)

My .htaccess looks like this :
#
AcceptPathInfo On
AddHandler fcgid-script .fcgi
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.fcgi/$1 [L,QSA]
#
When I point my browser to the directory in which the file
is located, the code is printed out, rather than executed.

I'm sure that there are other options to be enabled, but I am brand
new to fastcgi (note: fastcgi is enabled).

If this is deployed to a website where my domain is hosted, I will
not have access to apache configuration, thus .htaccess must do
all the work (if possible).

TIA
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] [solved] [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* Tim Johnson  [121113 19:16]:
> I have an instance of apache listening on port 8080.
> the following URL :
> http://localhost:8080/cgi-bin/cgitest.py
> returns a Not Found Error.
  All was revealed when I ran find against httpd.conf 
  FYI : This is an instance of apache started and controlled by
  drupal.
  And I am new to drupal..
  an httpd.conf was found in drupal's own apache setup/directory.
  I simply moved the test script to the scriptalias specified there
  and it works.
  Thanks to everybody for their help!
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* Igor Cicimov  [121114 13:29]:
> On Thu, Nov 15, 2012 at 5:14 AM, Tim Johnson  wrote:
> 
> > I have made some tweaks to httpd.conf without
> >   success
> >   Here's what I have :
> >  # for port 8080
> > 
> > DocumentRoot "/Users/http"
> > ScriptAlias /cgi-bin/ "/Users/http/run/"
> > ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$)
> > "/Users/http/run/$1"
> > 
> > AllowOverride None
> > Options None
> >
> 
> This is wrong, it should be
> 
> Options +ExecCGI
> AddHandler cgi-script .cgi .pl
> 
> you need to tell apache that the files in that directory are cgi scripts.
> Please read
> 
> http://httpd.apache.org/docs/2.2/howto/cgi.html
> 
> its all in there.
  This is mac OS X 10.7. I have done previous setups for apache all
  on linux. And yes, 
> Options +ExecCGI
> AddHandler cgi-script .cgi .pl
  is needed on linux. However, for some reason they _are not_ needed in this
  Mac install.
>From httpd.conf
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
#AddHandler cgi-script .py
Note the following: 
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
I understand from the above that is only needed in this installation
for directory outside of ScriptAliased directories.

Nevertheless, I did add those lines to the directory container, but
with no success.

I appreciate the help. I suspect that perhaps (and I am a permanent
apache noob because I do configs so seldom) - that there is a module
whose loading was disabled that may have an effect.

What I will do, is send my entire httpd.conf OTL to a known and trusted
individual who is a sysadmin, and then pose the problem to a mailing
list of sysadmins that both myself and he belong to. Any further
help that you offer would be appreciated, but perhaps with the full
httpd.conf for this individuals review and the other sysadmins eyes
- who do virtual host setups all the time - I might be able to
  report the solution by tomorrow.

Thanks again for your help.
regards
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* Igor Cicimov  [121114 13:29]:
> On Thu, Nov 15, 2012 at 5:40 AM, Tim Johnson  wrote:
> 
> > * Pete Houston  [121114 09:38]:
> > > If you look in the error log it should tell you precisely which path it
> > > is that has not been found, ie. after all the aliasing and so forth this
> > > will tell you precisely where on the filesystem it is looking for the
> > > content that is not found.
> >   Even with the error log directive, the 8080 instance is not
> >   writing to the log.
> >   thanks
> >
> > Meaning apache user probably doesn't have write permissions to the error
> log directory you pointed to.
  The owner is root and the group is wheel. Permissions were 644,
  reset to 666 - no changes

  to Recap :

  with chmod 644, ownership root:wheel the apache logs are written
  to by the port 80 (default) instance

  with chmod 666 OR 644, ownership root:wheel the apache logs are _not_ written
  by the port 8080 instance
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* Pete Houston  [121114 09:38]:
> If you look in the error log it should tell you precisely which path it
> is that has not been found, ie. after all the aliasing and so forth this
> will tell you precisely where on the filesystem it is looking for the
> content that is not found.
  Even with the error log directive, the 8080 instance is not
  writing to the log.
  thanks

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* lists-apache  [121114 09:26]:
> 
> 
> Look in your server's error log for the 8080 instance to see where
> it's directing the request.
> 
> 
>- Richard
  Oh! Good tip...
  Added the following:
  ErrorLog "/private/var/log/apache2/error_log"
  to httpd.conf
  and restart apache at 8080.
  Tried the cgi-bin URL again, got Not Found Error,
  *but*

  apache is not writing to that error log from 8080, so

  I presume that a further directive is needed.
  thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
I have made some tweaks to httpd.conf without
  success
  Here's what I have :
 # for port 8080

DocumentRoot "/Users/http"
ScriptAlias /cgi-bin/ "/Users/http/run/"
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Users/http/run/$1"

AllowOverride None
Options None
Order allow,deny
Allow from all


# end port 8080
These are the same settings as for the default (port 80) settings.
However, something is still lacking.
If I point my browser to
http://localhost/cgi-bin/cgitest.py
I get the output I expect.
If I point my browser to
http://localhost:8080/cgi-bin/cgitest.py
I still get a Not Found error.

/usr/sbin/apachectl configtest
gives me "Syntax OK"
thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-14 Thread Tim Johnson
* Igor Cicimov  [121113 20:03]:
> You have probably put the python script in wrong directory. According to
> this:
  right directory for port 80 - since I have scriptaliased for that
  port setting.
> http://www.editrocket.com/articles/perl_apache_mac.html
> 
> the default cgi one on OSX is */Library/WebServer/CGI-Executables
  http://localhost:8080/CGI-Executables is also "Not Found" 

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-13 Thread Tim Johnson
* Tim Johnson  [121113 19:16]:
> I have an instance of apache listening on port 8080.
> the following URL :
> http://localhost:8080/cgi-bin/cgitest.py
> returns a Not Found Error.
> 
> I presume that I need a different virtualhost and scriptalias setup,
> but am not sure how to accomplish this.
> 
> URLs to documentation on this subject may suffice and are welcome.
> thanks
 Left out :
 Apache running on Mac OSX 10.7

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] ScriptAlias/cgi-bin for apache instance on port 8080

2012-11-13 Thread Tim Johnson
I have an instance of apache listening on port 8080.
the following URL :
http://localhost:8080/cgi-bin/cgitest.py
returns a Not Found Error.

I presume that I need a different virtualhost and scriptalias setup,
but am not sure how to accomplish this.

URLs to documentation on this subject may suffice and are welcome.
thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Traveling/out of office

2012-02-07 Thread Tim Johnson
Hello : 

The message is being sent to this mailing list because I may have
participated in a thread recently that may still be active.

I will be traveling from February 8, 2012 until February 20 2012 and
will not receive email at this address during that time.

regards
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-31 Thread Tim Johnson
* Igor Cicimov  [120131 13:58]:
> You can use meta tag in your head section to call your script for example
> 
> http://yourdomain.com/path/to/your/cgi-script.py";>
> 
> which will call your script immediately on index.html load.
> 
> Or you can also use java script redirect in the body tag of index.html
> something like this:
> 
>  http://yourdomain.com/path/to/your/cgi-script.py";>
> 
> You can also use a relative path to your script in the examples above in
> regards to the index.html file so you can put something like
> "../cgi-bin/script.py" instead
> http://yourdomain.com/path/to/your/cgi-script.py
  Thank you for introducing me to th 21st century.
  :)

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-31 Thread Tim Johnson
* Igor Cicimov  [120130 18:11]:
> >
> > If I eliminate it, then I just a get an index page..
> 
> 
> Correct, and in that index.html page you call or redirect to your pyton
> script. That's the proper way to do it so you keep your web pages structure
> separate from your cgi scripts that live in a separate directory cgi-bin.
> 
  Thank you for the explanation.

  Could you give what you would consider to be a proper example?

  regards
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov  [120130 16:10]:
> Plus if the  journalLoader.py is a script then the directive
> 
> DirectoryIndex journalLoader.py
 If I eliminate it, then I just a get an index page..

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov  [120130 16:10]:
> You need to tell apache you want it to handle the pyton files as scripts
> not as html/text files.
> 
> AddHandler cgi-script .cgi .pl .py
> 
> You (or someone else) have probably done that on linux but you are not
> aware or have forgotten about it.
  Yup. Here we have it:
  in 
  /etc/apache2/httpd.conf

  added the following:
  AddHandler cgi-script .py
  
  restarted apache 
  /usr/sbin/apachectl restart
  (That's for OSX/darwin/bsd flavor,
   differs on linux)

And now .htaccess looks like this:
# begin .htacces
AcceptPathInfo On
Options +ExecCGI
DirectoryIndex journalLoader.py 
RewriteEngine on
RewriteCond $1
!^(journalLoader\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./journalLoader.py/$1 [L,QSA]
# end .htacces

Note that pathinfo is critical for me, as virtual
document path segments map to controllers, views and methods

Thanks for the tip! Any other constructive criticisms or suggestions
are welcome. 
cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
* Igor Cicimov  [120130 16:10]:
> You need to tell apache you want it to handle the pyton files as scripts
> not as html/text files.
> 
> AddHandler cgi-script .cgi .pl .py
> 
> You (or someone else) have probably done that on linux but you are not
> aware or have forgotten about it.
 Thanks Igor, you have put me on the hunt.
 More later
 cheers

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] rewrite engine shows text instead of executes script

2012-01-30 Thread Tim Johnson
To the best to my memory, the following .htaccess worked on linux, but
on OSX, the result is that the browser gives me the text of the
script, rather the output of the script.
FYI: The script is fully functional when requested via cgi-bin.

# .htaccess
RewriteEngine On
DirectoryIndex journalLoader.py
RewriteCond $1
!^(journalLoader\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./journalLoader.py/$1 [L,QSA]
# /.htaccess

the script journalLoader.py is at the path
http://linus.johnson.com/cgi-bin/baker/journal/journalLoader.py
(internal search domain) and when requested provides the
output I expect.

The directory/folder contain journalLoader.py is symlinked to 
my wwwroot directory.
When I point my browser to http://linus.johnson.com/journal
!!
The server gives me the text for the script rather than the output
!!
I'm woefully underinformed when it comes to .htaccess and mode
rewrite, but it occurs to me that if this works on a linux box and
not the the OSX platform, some configuration is need for Apache?
What would that be?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] htaccess is blocking cookie transmission

2011-03-07 Thread Tim Johnson
I have an internal site at the following file path:
/home/http/kbmls/ and since /home/http is the document root, the
site is referenced as follows: http://bart.johnson.com/kbmls.
bart.johnson.com is my internal domain (locally resolved host).

The default page is kbmlsLoader.py, which is symlinked from
/home/tim/prj/cgi/baker/kbmls so that I can used both traditional
cgi and a 'clean URL'.

I find that the cookie set by the first request to the site
http://bart.johnson.com/kbmls is not being transmitted. IOWS: A
check for the cookie on a second request does not find it, even
though I can verify that the cookie is set on my system.

It is likely that something is wrong with my .htaccess file
Code:

AcceptPathInfo On
Options +ExecCGI
AddHandler cgi-script py
DirectoryIndex kbmlsLoader.py 
RewriteEngine on
RewriteBase /kbmls
RewriteCond %{HTTP_COOKIE} lang=([^;]+) [NC]
RewriteRule ^(.*)$ /$1?lang=%1 [NC,L,QSA]
RewriteCond $1
!^(kbmlsLoader\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./kbmlsLoader.py/$1 [L,QSA]


What am I doing wrong?
thanks
tim
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How htaccess enables CGI script as default page

2011-03-03 Thread Tim Johnson
* Lee  [110302 23:18]:
> Sometimes you refer to the Perl scripts with absolute paths,
> sometimes relative. I do no know what dir your .htaccess is in, but
> please check the paths.
> 
> It also seems that you changed the .htaccess references to .pl
> extension to .py -- was there a reason for that?
> 
> Sorry I missed the start of this - there is too little history in
> the post to catch up properly.
  Hi Lee:
  Maybe you didn't get all of the messages on this thread.
  It is *David* that is using 'perl' scripts *I* am using 'python' scripts.
  By using David's htaccess and just changing the extensions I was
  able to see that my approach was working, but that the particular
  browser I was using was messing things up. Probably because it was 
  cached something from an earlier misconfiguration.
  
  I would note - as a long time web developer (cgi programmer) that
  for us old foggies trying to make the transition from
  'traditional' cgi to the framework approach, I could use some
  htaccess 'recipes'. 
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How htaccess enables CGI script as default page

2011-03-02 Thread Tim Johnson
* Tim Johnson  [110302 15:19]:
> * David Christensen  [110302 15:01]:
> > On 03/02/2011 03:22 PM, Tim Johnson wrote:
> > >I'm attempting to use .htaccess to make an executable python script
> > >as the default page for a directory.
> > 
>   obviously still something wrong on my end.
  Wait just a darn minute here! The problem is with the browser!

  I was using google-chrome. Retried the URL from firefox and it
  worked as intended. Even works with a different default 'page',
  which is symlinked into my cgi-bin.
  For some reason, this is a chrome configuration issue.
  Anyway, thanks for the 'supporting vote'.
  tj
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How htaccess enables CGI script as default page

2011-03-02 Thread Tim Johnson
* David Christensen  [110302 15:01]:
> On 03/02/2011 03:22 PM, Tim Johnson wrote:
> >I'm attempting to use .htaccess to make an executable python script
> >as the default page for a directory.
> 
> I recently wanted to have *all* hits for a particular subtree to go
> to a Perl CGI script on Debian 6.0.0 and Apache 2.2 via .htaccess.
> The key was realizing that I could catch index hits via
> DirectoryIndex and "not found" hits via ErrorDocument 404.
> 
> 
> I ended up with two files in my DocumentRoot:
> 
> .htaccess
> handler.pl
> 
> 
> Here is .htaccess:
> 
> $ cat .htaccess
> Options +ExecCGI
> AddHandler cgi-script pl
> DirectoryIndex   handler.pl
> ErrorDocument 404 /errordocument/handler.pl
  Hi David:
  Using your example I changed my .htaccess so that
  it has the following (only):
  ##
  Options +ExecCGI
  AddHandler cgi-script py
  DirectoryIndex index.py
  ##
  .htaccess is chmod 644
  Same results as before..
  thanks for the reply

  obviously still something wrong on my end.
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] How htaccess enables CGI script as default page

2011-03-02 Thread Tim Johnson
I'm using apache 2 on mint 10 (ubuntu 10 derivative)

I'm attempting to use .htaccess to make an executable python script
as the default page for a directory.

My document root is at /home/http

I have an .htaccess file at /home/http/kbmls
I have a script - index.py at /home/http/kbmls
/home/http/kbmls permissions are set to 755
index.py permissions are set to 755

Code for .htaccess follows:
##
RewriteEngine on
RewriteCond $1 !^(index\.py|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.py/$1 [L,QSA]
##
When I point the browser to /home/http/kbmls the browser
offers to download everything - obviously not what I want.

If possible, I would like to do this without any system-wide
configuration changes - such as I have had to do with dir.conf in
the past (if I recall correctly)

What else do I need to do with .htaccess?
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] internal redirects error

2010-11-10 Thread Tim Johnson
* Igor Cicimov  [101110 16:55]:
> Your RewriteRule doesn't make much sense though. It will cause to redirect
> http://localhost/reg to pyindex.py/reg (plus append the query string if any)
> and I don't see the purpose of this redirect. What are you really trying to
> achieve here?
> 
> If the idea is to redirect virtual links, the one without real files in the
> apache file system, then you better do
> 
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ /py/  [L]
> 
> which will redirect any non existing link to the pyindex.py file which is
> your home page I assume.
  Thank you Igor. The changes that you recommend above for .htaccess
  have been implemented. I believe that I have solved my problem.
  best of luck. Keep up the great help.
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] internal redirects error

2010-11-10 Thread Tim Johnson
* Igor Cicimov  [101110 15:41]:
> "AllowOverride all" so maybe some redirection in .htaccess file in that
> directory causing infinite loop?
> 
> Try setting it to None instead and see if the problem goes away. Then you'll
> know the problem is in the .htaccess file for sure.
  Yes, that solves that problem, but creates another: now a
  ScriptAlias directive fails. 
  So now I have the following in total:
ScriptAlias /reg/ /home/http/py/


DirectoryIndex pyindex.py

#AllowOverride all
## Scriptalias will not work with AllowOverride set to 'None'
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

  Now if I point the browser to http://localhost/py, pyindex.py executes,
  but if I point the browser to http://localhost/reg I get
"You don't have permission to access /reg/ on this server."
.htaccess is as follows:
# begin
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ ./pyindex.py/$1 [L,QSA]
# end

  *However* I really don't need the ScriptAlias. But this is a learning
  experience for me.
  Thank you. 

-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] internal redirects error

2010-11-10 Thread Tim Johnson
I'm using apache2 on ubuntu 10.04.
I am a programmer familiar with the command line, but
new to fine-tuning apache.

I'm getting following error message:
"""
Request exceeded the limit of 10 internal redirects due to probable
configuration error. Use 'LimitInternalRecursion' to increase the
limit if necessary
"""
This is caused by the follow directive (I believe)


DirectoryIndex pyindex.py

AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

The intent is that for directory /home/http/py the default 'page' 
would be pyindex.py. And I want to restrict pyindex.py as
only the default page for that particular directory.

So what is the configuration error?
thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] DirectoryIndex for a specific index

2010-11-09 Thread Tim Johnson
* Eric Covener  [101109 14:55]:
> On Tue, Nov 9, 2010 at 3:08 PM, Tim Johnson  wrote:
<..> > Is it possible to to set directory files names specific to the
> > directory:
> > Example::
> 
> of course you can manually do this by using DirectoryIndex inside of
>  or , but if you've got more than a few maybe you
> want to look at mod_macro.
  Thank you Eric. I've got my lead.
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] DirectoryIndex for a specific index

2010-11-09 Thread Tim Johnson
Platform is ubuntu 10.04
in my /etc/apache2/mods-available/dir.conf,
I have the following ::


  DirectoryIndex index.html index.php index.py index.cgi index.pl index.xhtml 
index.htm


Is it possible to to set directory files names specific to the
directory:
Example:: 
for
mydomain/foo1 I could have index_foo1.html index_foo1.php ... etc

for
mydomain/foo2 I could have index_foo2.html index_foo2.php ... etc

URLs to documentation, keywords or discussions would be sufficient.
thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] cgi script as domain root index (howto)

2010-11-01 Thread Tim Johnson
* Eric Covener  [101101 04:20]:
> >        Options +ExecCGI Indexes FollowSymLinks MultiViews
> manual says don't mix +/- and non +/-. This doesn't do what you expect.
  You're correct.
  It works now.
  Thank you!
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] cgi script as domain root index (howto)

2010-10-31 Thread Tim Johnson
* Eric Covener  [101031 17:14]:
> >  """
> >  You don't have permission to access /index.py on this server
> >  """
> 
> Check your error log for a more informative message.

  Yeah right. :) why didn't I remember to do that?  
  
  From /var/log/apache2/error.log (on ubuntu 10.04) 
  Options ExecCGI is off in this directory: /home/http/index.py 
  
  Alas, I have tried adding +ExecCgi to `default' without any luck.

  Example:
   
#Options Indexes FollowSymLinks MultiViews
Options +ExecCGI Indexes FollowSymLinks MultiViews
#AllowOverride None
AllowOverride all
#AllowOverride FileInfo
Order allow,deny
allow from all



  Further comments are welcome. But you have put me on a better
  track. Thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] cgi script as domain root index (howto)

2010-10-31 Thread Tim Johnson
* Tim Johnson  [101031 15:05]:
> This questions concerns apache(2) on ubuntu 10.04 and apache on
> centOS (OS version 7?)
> Using the following apache directive:
>ScriptAlias /reg/ /home/http/py/
> 
> AllowOverride all
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> 
> 
> And the following .htaccess directives:
> #
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ ./index.py/$1 [L,QSA]
> #
> I can point my browser to http://localhost/reg/
> (with trailing slash) and get a response from
> 'index.py'
> Two questions ::
> 
> 1)How may I configure apache so that users will not need the
> trailing slash?
> 
> 2)How may I configure apache so that pointing my browser to
> http://localhost 
> will give me the response from a CGI script at /home/http ?
  Well, I have done some 'poking around'. I have altered the
  configuration of /etc/apache2/mods-enabled/dir.conf
  with the following directive:
  ##
  DirectoryIndex index.html index.php index.py index.cgi index.pl
  index.xhtml index.htm
  ##
  I can verify that index.html and index.php will work, based on the
  priority of the file entries. However, if I rename both index.php
  and index.html - I get the following error message:
  """
  You don't have permission to access /index.py on this server
  """
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] cgi script as domain root index (howto)

2010-10-31 Thread Tim Johnson
This questions concerns apache(2) on ubuntu 10.04 and apache on
centOS (OS version 7?)
Using the following apache directive:
   ScriptAlias /reg/ /home/http/py/

AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


And the following .htaccess directives:
#
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ ./index.py/$1 [L,QSA]
#
I can point my browser to http://localhost/reg/
(with trailing slash) and get a response from
'index.py'
Two questions ::

1)How may I configure apache so that users will not need the
trailing slash?

2)How may I configure apache so that pointing my browser to
http://localhost 
will give me the response from a CGI script at /home/http ?

Relevant keywords, and URLs are also welcome.
TIA
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] cgi applications are *now* generating errors

2010-08-07 Thread Tim Johnson
* Tim Johnson  [100807 17:10]:
> I'm using apache2 on ubuntu 10.04.
> Some CGI applications on my own desktop are no long working.
> The error message stored in the logfile will be something like this:
> """
> (2)No such file or directory: Could not open password file:
> /usr/local/apache/passwords
> File does not exist: /home/http/error_pages
> """
> 
> This started happening after I enabled mode_rewrite for apache.
> some CGI applications with the same permissions and ownership 
> as those generating errors are working.
> It should also be noted that the ownership and permissions of
> the directories of the files that work are the same as that of
> the directories of the files that *do not* workd.
> 
> Most likely this is the result of the mode_rewrite mods.
> Please advise.
  Upon reflection, the best advice is to not leave .htaccess
  file lying about which could then be activated by the
  AllowOverride directions 
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] cgi applications are *now* generating errors

2010-08-07 Thread Tim Johnson
I'm using apache2 on ubuntu 10.04.
Some CGI applications on my own desktop are no long working.
The error message stored in the logfile will be something like this:
"""
(2)No such file or directory: Could not open password file:
/usr/local/apache/passwords
File does not exist: /home/http/error_pages
"""

This started happening after I enabled mode_rewrite for apache.
some CGI applications with the same permissions and ownership 
as those generating errors are working.
It should also be noted that the ownership and permissions of
the directories of the files that work are the same as that of
the directories of the files that *do not* workd.

Most likely this is the result of the mode_rewrite mods.
Please advise.
thanks
tim
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [EMAIL PROTECTED] fully qualified domain name - Problem

2007-05-23 Thread Tim Johnson
 Thanks to Joshua and Dragon, all is good now.
  cheers
  tim
-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] DocumentRoot - Apache2 - Ubuntu

2007-05-23 Thread Tim Johnson
On Wednesday 23 May 2007 12:03, Krist van Besien wrote:
<>
>
> What I did is put every  block in its own config file. In
> these config files I configured for every virtual host where the
> docroot is, where it has to log etc...
> All these config files are under sites_available, and sites_enabled
> contains links to these files.
   Hi Krist:
   Thank you for the explanation - here's what I did - paths obfuscated:
   in /etc/apache2/sites-available/default, 
   which is symlinked as you describe - I have the following:
  DocumentRoot /mydoc/root/ 
   ScriptAlias /cgi-bin/ "/mydoc/root/cgipath/" ## quoted and trailing '/'

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


I'm much obliged for the help.
tim
-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] fully qualified domain name - Problem

2007-05-22 Thread Tim Johnson
When I restart apache2 on ubuntu 7.04 (amd_64) with the following command:
/etc/init.d/apache2 restart
I get the following message:
"""
Could not reliably determine the server's fully qualified domain name, using 
127.0.1.1 for ServerName
"""
What is the solution?
Is there documentation on this subject?
thanks
Tim

-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] DocumentRoot - Apache2 - Ubuntu

2007-05-22 Thread Tim Johnson
On Tuesday 22 May 2007 11:06, Krist van Besien wrote:
> > > Line 5 of /etc/apache2/sites-enabled/000-default.
> > > looks like this:
> > > DocumentRoot /var/www/
> > >
> > > Is that what you are referring to?
>
> Ubuntu stores website config ins /etc/apache2/sites-available. To
> change the default host edit /etc/apache2/sites-available/000-default.
> In /etc/apache2/sites-enabled you will find only links to
> sites-available.
>
> What I've done on my personal server (which also runs Ubuntu Linux) is
> to have a seperate config file for each virtual server in
> sites-available. In sites-enabled I've then made links to "activate"
> those virtual hosts that I want to be active.
   Hi Krist:
   To make sure that I follow you - as an example, I would put symlink
   called @cgi-bin under sites-enabled and then by able to access it as
   http://localhost/cgi-bin/script.extension ?

   I don't necessarily have to change the document root, I can handle symlinks
   being overwritten by an upgrade
   apache doesn't seem recognize /var/www/cgi-bin (where cgi-bin is a symlink)
   thanks
   tim 

-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] DocumentRoot - Apache2 - Ubuntu

2007-05-21 Thread Tim Johnson
On Tuesday 22 May 2007 02:05, Stephen wrote:
 
> > I don't see a `DocumentRoot' variable in the apache2 httpd.conf.
> > Can I add that variable and will it have the same effect .

 Hi Stephen:

> Look at some of the nested/included *.conf files.
 
  There is no path called `included'.
  the directories below /etc/apache2 are:

conf.d, mods-available, mods-enabled, sites-available, sites-enabled

Line 5 of /etc/apache2/sites-enabled/000-default
looks like this:
DocumentRoot /var/www/

Is that what you are referring to?

> The idea is that changes are made to them, and not http.conf.
 
 Pointer/URLs to documentation on this subject are invited too.
thanks
tim

-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] DocumentRoot - Apache2 - Ubuntu

2007-05-21 Thread Tim Johnson
Hello:
Using apache2 on kubuntu 7.04 (amd_64)

On my older machine, which is slack 10.0, and (I think) apache 1.3.32, 
httpd.conf contains a DocumentRoot variable which can "override" the apache 
default document path.

I don't see a `DocumentRoot' variable in the apache2 httpd.conf.
Can I add that variable and will it have the same effect .

Thanks
Tim
-- 
Tim Johnson <[EMAIL PROTECTED]>
Palmer, Alaska, USA

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Providing pwd&usr with cgi URL

2006-02-21 Thread Tim Johnson
Hello 

I need to programmatically connect to a cgi script at a domain
that is password protected.
Let's say the URL for the script is
http://www.somedomain.com/cgi-bin/py/dothis.py
and
http://www.somedomain.com is restricted access requiring a username and
password

1)Can I supply the user and password as variables?
  Example:

http://www.somedomain.com/cgi-bin/py/dothis.py?uservariable=user&pwdvariable=pwd
  If so:
  a)What is the name of the user variable?
  b)What is the name of the password variable?
  c)Are any other parameters required?

2)What server-sider configuration if any is required?

Pointers to relevant documentation is invited.
thank you
tim

-- 
Tim Johnson <[EMAIL PROTECTED]>
  http://www.alaska-internet-solutions.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]