Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

executing scripts under apache server

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


smmehadi at gmail

Apr 18, 2008, 1:57 AM

Post #1 of 2 (632 views)
Permalink
executing scripts under apache server

Hi Guys,
After installing apache2, python lib for apache2 (libapache2....), and doing
some changes in default file in /etc/apache2/sites-available i was able to
execute python scripts in /var/www/ directory from client side using url
http://machine-ip/var/www/abc.py.
but i want to place all of my python scripts in some other directory like
/home/username/myserver, so what changes i have to make in configuration
files at /etc/apache2/apache2.conf or some other place (like
/etc/apache2/sites-available/default), so that my server side scripts placed
in this folder (/home/username/myserver) gets executed from client side
using some url like
http://machine-ip/home/username/myserver/abc.py.<http://machine-ip/home/username/myserver/abc.py>

Thanks & Regards
Syed


joshua at slive

Apr 18, 2008, 6:49 AM

Post #2 of 2 (587 views)
Permalink
Re: executing scripts under apache server [In reply to]

On Fri, Apr 18, 2008 at 4:57 AM, syed mehdi <smmehadi [at] gmail> wrote:
> Hi Guys,
> After installing apache2, python lib for apache2 (libapache2....), and doing
> some changes in default file in /etc/apache2/sites-available i was able to
> execute python scripts in /var/www/ directory from client side using url
> http://machine-ip/var/www/abc.py.
> but i want to place all of my python scripts in some other directory like
> /home/username/myserver, so what changes i have to make in configuration
> files at /etc/apache2/apache2.conf or some other place (like
> /etc/apache2/sites-available/default), so that my server side scripts placed
> in this folder (/home/username/myserver) gets executed from client side
> using some url like http://machine-ip/home/username/myserver/abc.py.

Well, this depends on the details of your setup. But the following
document introduces the basics of what you need to know:
http://httpd.apache.org/docs/2.2/urlmapping.html

Joshua.

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

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.