Re: [EMAIL PROTECTED] How can I write a cgi using c/c++?

2007-07-09 Thread Vincent Bray
On 10/07/07, ying lcs <[EMAIL PROTECTED]> wrote: Can you please tell me what is the easiest way to write a cgi using c/c++? I am coming from Tomcat servlet environment, I would like to know how can I do a cgi using c/c++ in apache? C: #include int main (void) { printf("Content-Type: text/ht

[EMAIL PROTECTED] How can I write a cgi using c/c++?

2007-07-09 Thread ying lcs
Hi, Can you please tell me what is the easiest way to write a cgi using c/c++? I am coming from Tomcat servlet environment, I would like to know how can I do a cgi using c/c++ in apache? Thank you. - The official User-To-User

Re: [EMAIL PROTECTED] Re: 301 Redirect

2007-07-09 Thread Ricky Zhou
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nobody wrote: > On Mon, 09 Jul 2007 17:25:45 -0400, Ki Song wrote: >> I want to redirect visitors from http://www.foo.com/folder/index.html to >> http://folder.foo.com/index.html >> >> What is the best way to accomplish this? > > ooo... ooo... ooo..

[EMAIL PROTECTED] Re: 301 Redirect

2007-07-09 Thread nobody
On Mon, 09 Jul 2007 17:25:45 -0400, Ki Song wrote: > I want to redirect visitors from http://www.foo.com/folder/index.html to > http://folder.foo.com/index.html > > What is the best way to accomplish this? ooo... ooo... ooo... I know this one: Here's The Answer: http://tiny

[EMAIL PROTECTED] 301 Redirect

2007-07-09 Thread Ki Song
I want to redirect visitors from http://www.foo.com/folder/index.html to http://folder.foo.com/index.html What is the best way to accomplish this? - The official User-To-User support forum of the Apache HTTP Server Project. See

Re: [EMAIL PROTECTED] Apache 2.2.3: "You don't have permission to access the requested directory" for public_html directories w/o index.html

2007-07-09 Thread boxyzzy
Thanks tp those who responded. fixed my problem. Please educate me. Considering that worked a) for the previous older release, and b) for directories with an ndex.html file: 1) What about this version caused these symptoms? 2) Exactly why did fix the problem? Shouldn't have fiaile

[EMAIL PROTECTED] httpd 2.0.59 problems with mod_ssl.so

2007-07-09 Thread Jeff Fulmer
Hi, I've got stability problems with apache 2.0.59 on HPUX compiled from source. On startup, I see a series of connections despite the fact that no requests were made to the server. These "connections" loop from 1 to the number of start servers I've configured. Here's an example from the error_log

Re: [EMAIL PROTECTED] Apache user

2007-07-09 Thread Vincent Bray
On 09/07/07, Oliver Marshall <[EMAIL PROTECTED]> wrote: Not sure if this is the right list, but does anyone know how to find out the user/group that apache is running as in debian ? It's www-data. See: http://httpd.apache.org/docs/2.2/mod/mpm_common.html#user http://wiki.apache.org/httpd/Distr

[EMAIL PROTECTED] Apache user

2007-07-09 Thread Oliver Marshall
Lo chaps. Not sure if this is the right list, but does anyone know how to find out the user/group that apache is running as in debian ? Olly - The official User-To-User support forum of the Apache HTTP Server Project. See http:

Re: [EMAIL PROTECTED] Writing a cgi script for downloading

2007-07-09 Thread Carlos Eduardo Maiolino
See if the directory of scripts have a permission "ExecCGI" in the Options Directive. Ex: Options +ExecCGI wrote: Do you have sed installed? if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test

Re: [EMAIL PROTECTED] method to remove individual file from cache using mod_cache/mod_disk_cache Apache 2.2.4

2007-07-09 Thread Vincent Bray
On 09/07/07, Mark Stevens <[EMAIL PROTECTED]> wrote: I have a basic reverse proxy setup using mod_cache, mod_disk_cache and mod_proxy, we are having issues with some of the PDF's getting corrupted in the cache, the problem is intermittent but is happening randomly, we are able to re-produce by re

[EMAIL PROTECTED] method to remove individual file from cache using mod_cache/mod_disk_cache Apache 2.2.4

2007-07-09 Thread Mark Stevens
Hi, I have a basic reverse proxy setup using mod_cache, mod_disk_cache and mod_proxy, we are having issues with some of the PDF's getting corrupted in the cache, the problem is intermittent but is happening randomly, we are able to re-produce by requesting the same file but appending ?1, ?2 etc u

RE: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Dean Pullen
Ok thanks for the help Vincent, I'll have a look into the virtual hosts etc, though they seem not to have any directory declarations within them at all. -Original Message- From: Vincent Bray [mailto:[EMAIL PROTECTED] Sent: 09 July 2007 13:46 To: users@httpd.apache.org Subject: Re: [EMAIL

Re: [EMAIL PROTECTED] Re: mod_deflate optimization

2007-07-09 Thread Vincent Bray
On 09/07/07, Julius Thyssen <[EMAIL PROTECTED]> wrote: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html shows an example almost identical to what I'm using, with That example doesn't include DeflateCompressionLevel :-) I don't remember, but someone on the web, long ago, advised me to use

Re: [EMAIL PROTECTED] Re: mod_deflate optimization

2007-07-09 Thread Julius Thyssen
On 7/9/07, Vincent Bray <[EMAIL PROTECTED]> wrote: See the docs for that directive which include: Context:server config, virtual host Meaning that this directive can be set in the main server context, or http://httpd.apache.org/docs/2.0/mod/mod_deflate.html shows an example almost id

Re: [EMAIL PROTECTED] Is there a way to call mod_dbd methods using mod_python?

2007-07-09 Thread Vincent Bray
On 08/07/07, Roy H. Han <[EMAIL PROTECTED]> wrote: Hi, Is there a way to call mod_dbd methods in Python using mod_python? I'm trying to figure out how to use mod_dbd's connection pooling feature. I expect not. The mod_python developers would have to hook mod_dbd's public api in to python-land

Re: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Vincent Bray
On 09/07/07, Dean Pullen <[EMAIL PROTECTED]> wrote: Options I don't believe that's valid. Use "Options None" if you want that, but consider keeping Options Symlinks enabled for the whole server which will speed things up a bit. AllowOverride None Order Deny,Allow Deny from al

Re: [EMAIL PROTECTED] Control Panel

2007-07-09 Thread Vincent Bray
On 09/07/07, Oliver Marshall <[EMAIL PROTECTED]> wrote: Can anyone recommend a free/OS control panel for apache on linux that will allow for the quick setup of basic sites ? Ideally it would be good if it also created an ftp account in proftpd and a mysql DB as well. Doesn't need email setup or

RE: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Dean Pullen
Options AllowOverride None Order Deny,Allow Deny from all Options FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all --

Re: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Vincent Bray
On 09/07/07, Dean Pullen <[EMAIL PROTECTED]> wrote: It produces a 403: Forbidden You don't have permission to access /documents/ on this server. If I remove Indexes from the first directory directive on /, then it works as required. But in the OP your block didn't have an Options directive.

RE: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Dean Pullen
It produces a 403: Forbidden You don't have permission to access /documents/ on this server. If I remove Indexes from the first directory directive on /, then it works as required. -Original Message- From: Vincent Bray [mailto:[EMAIL PROTECTED] Sent: 09 July 2007 13:27 To: users@httpd.

Re: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Vincent Bray
On 09/07/07, Dean Pullen <[EMAIL PROTECTED]> wrote: Thanks for the tip, I did read something similar myself...but I've tried it and it didn't work :-/ Could you be a little more specific? If you're just not seeing indexes, it could be that you don't have mod_autoindex loaded, or else your Optio

RE: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Dean Pullen
Thanks for the tip, I did read something similar myself...but I've tried it and it didn't work :-/ -Original Message- From: Vincent Bray [mailto:[EMAIL PROTECTED] Sent: 09 July 2007 12:14 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Overriding directory directives On 09/07/0

Re: [EMAIL PROTECTED] Re: mod_deflate optimization

2007-07-09 Thread Vincent Bray
On 09/07/07, Julius Thyssen <[EMAIL PROTECTED]> wrote: Actually, when I try to use itlike this: SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI\.(?:gif|jpe?g

Re: [EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Vincent Bray
On 09/07/07, Dean Pullen <[EMAIL PROTECTED]> wrote: I have the following: [snip] Options -Indexes FollowSymLinks MultiViews This could be the problem. Mixing relative and non-relative options in the same directives is broken. See: http://people.apache.org/~rbowen/presentations/apacheco

[EMAIL PROTECTED] Overriding directory directives

2007-07-09 Thread Dean Pullen
I have the following: AllowOverride None Order Deny,Allow Deny from all Options -Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from @apache.allow.from@ Options Indexes FollowSymLinks MultiViews AllowOverride None Orde

[EMAIL PROTECTED] Control Panel

2007-07-09 Thread Oliver Marshall
Can anyone recommend a free/OS control panel for apache on linux that will allow for the quick setup of basic sites ? Ideally it would be good if it also created an ftp account in proftpd and a mysql DB as well. Doesn't need email setup or dns or anything. Any suggestions ? Olly -

Re: [EMAIL PROTECTED] File permissions

2007-07-09 Thread Mark Watts
> I have just installed Apache 2.2 on an Ubuntu 7.04 server (no gui, > command line only). I would like advice or a pointer to a guide for > best practice on setting permissions on the files and directories in and > below webroot. What user and group is suggested and what permissions? Apache ha

Re: [EMAIL PROTECTED] PHP files prompting to download

2007-07-09 Thread Vincent Bray
On 09/07/07, Oliver Marshall <[EMAIL PROTECTED]> wrote: However, this time round, the browser prompts me to download any PHP files I enter in the URL. HTML and HTM are all fine, its just php. Try: http://wiki.apache.org/httpd/PHPDownload -- noodl -

Re: [EMAIL PROTECTED] mod_rewrite in .htaccess does not work

2007-07-09 Thread Vincent Bray
On 09/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: good day Hi i'm trying to install some php cms system on my hompage's host machine. there's a index file that is supposed to parse the path after index, e.g. index/login, do the magic and render the login page. now apparently the .htac

[EMAIL PROTECTED] PHP files prompting to download

2007-07-09 Thread Oliver Marshall
Hi, Dunno what I've done, but I'm trying to setup a Mandriva based LAMP box to run a few minor sites. Done it before, with the same instrucitons, and its worked fine. However, this time round, the browser prompts me to download any PHP files I enter in the URL. HTML and HTM are all fine, its just

Re: [EMAIL PROTECTED] IE6 has issue when KeepAlive On

2007-07-09 Thread Vincent Bray
On 09/07/07, Qingshan Xie <[EMAIL PROTECTED]> wrote: After Apache 2.0.59 KeepAlive On, IE6 users got "Page cannot be found" or "Page cannot be displayed" errors, but Firefox users worked fine. Do you know what is the root cause? MSIE is known to be very broken, but I've never heard of it dy

RE: [EMAIL PROTECTED] Still dying with Solaris 8 & apache - getting desperate

2007-07-09 Thread Boyle Owen
> -Original Message- > From: ROTH, MARK, ATTSI [mailto:[EMAIL PROTECTED] > Sent: Friday, July 06, 2007 10:48 PM > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] Still dying with Solaris 8 & apache - > getting desperate > > Folks, > >I'm still fighting this, and loosing. The