Re: [EMAIL PROTECTED] Apache worker / PHP issue
André Warnier wrote: > Savio Dias wrote: >> Hello, >> >> Is there anyone who can help resolve this issue ? >> > Hi. > What the Debian packager (through the apt-get program) and Eric are > telling you, is that the PHP5 package removes mpm-worker and replaces it > by mpm-prefork for a good reason. > The good reason is probably that mpm-worker is a threaded version of > Apache, and PHP5 has something that does not work in a threaded version > of Apache, so they are not compatible. > That's correct. To correctly run PHP5 in a threaded Apache, don't use mod_php5 - use FastCGI. That'll give you all of the benefits of worker without bombing out on non-threadsafe PHP calls (or if you're POSITIVE that you don't need threadsafe PHP5 extensions, you can use mod_php5 - AFAIK the php5 core IS threadsafe and I know of several folks using this in production) Issac - 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] Apache worker / PHP issue
Savio Dias wrote: Hello, Is there anyone who can help resolve this issue ? Hi. What the Debian packager (through the apt-get program) and Eric are telling you, is that the PHP5 package removes mpm-worker and replaces it by mpm-prefork for a good reason. The good reason is probably that mpm-worker is a threaded version of Apache, and PHP5 has something that does not work in a threaded version of Apache, so they are not compatible. What Eric is further telling you, is that you can decide to live dangerously, and still force PHP5 to run under a threaded version of Apache. But the way to do that, would be to build your own threaded version of Apache from the Apache source. Thanks On Sun, Nov 9, 2008 at 1:48 AM, Eric Covener <[EMAIL PROTECTED]> wrote: On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <[EMAIL PROTECTED]> wrote: Hello, I am using Ubuntu 8.04. I have installed apache2 using apt-get, this installs the mpm-worker mode. However when i try to install php5 using apt-get, it removes the mpm-worker and installs prefork. I need to keep the worker mode intact..please suggest. Your distro is wisely preventing you from using that combination. http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 If you know better, build your own. -- Eric Covener [EMAIL PROTECTED] - 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] - 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] - 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] Apache worker / PHP issue
Hello, Is there anyone who can help resolve this issue ? Thanks On Sun, Nov 9, 2008 at 1:48 AM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Sat, Nov 8, 2008 at 2:00 PM, Savio Dias <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I am using Ubuntu 8.04. >> >> I have installed apache2 using apt-get, this installs the mpm-worker mode. >> However when i try to install php5 using apt-get, it removes the >> mpm-worker and installs prefork. >> >> I need to keep the worker mode intact..please suggest. > > Your distro is wisely preventing you from using that combination. > > http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 > > If you know better, build your own. > > -- > Eric Covener > [EMAIL PROTECTED] > > - > 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] > > - 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] HTTPS connexion on the port 80
1. SSL allows one certificate per port/IP Address. 2. Only one server (protocol) can run on each port/IP Address. You cannot use HTTP and HTTPS on the same port/IP Address. HTTP and HTTPS are distinct protocols. Imagine running SMTP and HTTP servers on the same port. That one server software installation (e.g. Apache httpd) can handle more than one protocol (FTP, HTTP, HTTPS, LDAP, etc.) does not allow breaking this rule. 3. You cannot use multiple SSL certificates for virtual hosts on one port/IP Address. Assigning a SSL certificate to a virtual server must specify a distinct port -- VirtualHost * will not work. See: http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#aboutconfig http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#vhosts The summary is HTTPS encryption must be negotiated before the server reads the request. If the port allows HTTP (unencrypted) sessions, the SSL negotiation will not happen. If an HTTPS request is attempted, browsers try to negotiate encryption and the connection fails. Yes, SSL for HTTPS was designed poorly. TLS/SNI tries to fix these issues, but requires ubiquitous browser and server support -- unlikely for several years. Today, the only solution is to use a distinct port or IP Address for each SSL certificate/HTTPS server. I recommend using separate IP Addresses to avoid port numbers in URLs. Sorry, solprovider On 11/9/08, David BERCOT <[EMAIL PROTECTED]> wrote: > I'm new on this list and this is my first message. So, a little > presentation : I'm French, I work on Debian and I have a problem ;-) > > On my server, I can only use port 80, for http and https access. So, > here is my /etc/apache2/sites-available/default file : > ServerAdmin [EMAIL PROTECTED] > > Options FollowSymLinks > AllowOverride AuthConfig > > ErrorLog /var/log/apache2/error.log > # Possible values include: debug, info, notice, warn, error, crit, > alert, emerg. LogLevel warn > CustomLog /var/log/apache2/access.log combined > ServerSignature On > NameVirtualHost * > > ServerName site1.mydomaine.org > DocumentRoot /site1 > > > > ServerName site2.mydomaine.org > DocumentRoot /site2 > > > > ServerName site3.mydomaine.org > DocumentRoot /site3 > SSLEngine on > SSLCertificateFile /ssl/site3.cert > SSLCertificateKeyFile /ssl/site3.key > > > If I try https://site3.mydomaine.org:80/, it should works, no ? > In fact, it is ok for site1 and site2, and for site3, it works only in > http !!! It seems it should not work in http, no ? > If I open (only for tests) the 443 port, it works correctly in https. > Do you have any clue ? > > Thanks. > David. - 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] Location/locationmatch on Windows install
Almost 100% sure you are messed up by trying to use a location where you mean to use a directory. A location is a url path - your users aren't coming in asking for http://yoursite/htdocs/ --- are they? Just forget that there is a directive. Stick with . Randall, Todd wrote: > It's not the rewrite I'm having the issue with. If I remove the > locationmatch or location directives it rewrites perfectly fine. For > whatever reason, I cannot get the locationmatch or location directives > to "kick in" on a windows platform install. Any unix/linux platform > install with the same exact code works perfectly fine. > > I will have to google pastebin as I have no idea what that is. > > Thanks again, and willing to try anything, > Todd > > > -Original Message- > From: Eric Covener [mailto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2008 8:55 AM > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install > > On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd > <[EMAIL PROTECTED]> wrote: >> Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log > now. >> When I hit that URL I get: >> >> (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri >> 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html' >> (1) [per-dir /htdocs/] pass through >> d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html >> >> I don't understand that, but does it confirm what you were thinking? >> What should I change it to for a test? > > No -- I am surprised that it's testing against something that looks > like an absolute filesystem path instead of a partial URL. To > simplify, don't put your Rewrite directives inside any > Location/Directory containers. Maybe you could pastebin the entire > log? > - 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] 2.2.9 overriding AuthBasicProvider ldap with .htaccess files
Hi all. I'm trying to convert an apache 2.0 config to 2.2 where the section in httpd.conf configures access via ldap, and an .htaccess file overrides that setting for a particular subdirectory of that space. Here's what I'm trying to use on apache 2.2.9 (ip addresses and paths changed to protect the innocent) AllowOverride AuthConfig AuthBasicProvider ldap AuthName "Default Auth" AuthType Basic AuthLDAPURL "ldap://aa.bb.cc.dd/ou=people,dc=myplace,dc=com,dc=au?uid?one?"; require valid-user AuthzLDAPAuthoritative off Options FollowSymLinks Order allow,deny Allow from all And here's what I have in /path/to/my/site/cgi-bin/test/.htaccess: AuthName "Local Auth" AuthType Basic AuthUserFile /path/to/my/site/cgi-bin/test/.htpasswd AuthGroupFile /dev/null require user testme1 The .htpasswd file contains one entry - that for the 'testme1' user When only one of these settings is in place (and the other commented out) then the authentication seems to work fine. However with both configured neither set of credentials (ldap or .htpasswd based) are accepted. Here is the debug output from the apache error log when both are enabled [Tue Nov 11 14:26:41 2008] [debug] mod_authnz_ldap.c(377): [client ww.xx.yy.zz] [18978] auth_ldap authenticate: using URL ldap://aa.bb.cc.dd/ou=people,dc=myplace,dc=com,dc=au?uid?one? [Tue Nov 11 14:26:41 2008] [warn] [client ww.xx.yy.zz] [18978] auth_ldap authenticate: user testme1 authentication failed; URI /cgi-bin/test/printenv [User not found][No such object] [Tue Nov 11 14:26:41 2008] [error] [client ww.xx.yy.zz] user testme1 not found: /cgi-bin/test/printenv Here's is the output when ldap auth is used and .htaccess is disabled [Tue Nov 11 14:29:17 2008] [debug] mod_authnz_ldap.c(377): [client ww.xx.yy.zz] [2500] auth_ldap authenticate: using URL ldap://aa.bb.cc.dd/ou=people,dc=myplace,dc=com,dc=au?uid?one? [Tue Nov 11 14:29:17 2008] [debug] mod_authnz_ldap.c(474): [client ww.xx.yy.zz] [2500] auth_ldap authenticate: accepting ldapguy [Tue Nov 11 14:29:17 2008] [debug] mod_authnz_ldap.c(847): [client ww.xx.yy.zz] [2500] auth_ldap authorise: declining to authorise There is no debug info in the apache log when the .htaccess auth is used and ldap is disabled. From the first set of debugging info it appears authnz_ldap is still trying to do authentication checking even when the .htaccess should be overriding it. Can anyone else repeat this problem or suggest the proper configuration to make it work. Thanks, Admin - 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] Re: HTTPS connexion on the port 80
On Mon, Nov 10, 2008 at 5:00 PM, David BERCOT <[EMAIL PROTECTED]> wrote: > Le Mon, 10 Nov 2008 15:55:17 -0500, > Dan Poirier <[EMAIL PROTECTED]> a écrit : >> David BERCOT <[EMAIL PROTECTED]> writes: >> > Le Mon, 10 Nov 2008 06:59:54 -0500, >> > "Eric Covener" <[EMAIL PROTECTED]> a écrit : >> >> On Mon, Nov 10, 2008 at 2:03 AM, David BERCOT <[EMAIL PROTECTED]> >> >> wrote: >> >> >> >> > Yes, but no ;-) >> >> > I want https traffic on port 80, nor 443 !!! >> >> >> >> You can't do that, because the client needs to know whether to >> >> speak http or https as soon as they send any data, and apache >> >> won't just try to interpret it either way. >> > >> > But the client knows what to speak because I tell him : >> > httpS://site3.mondomaine:80/ >> >> Apache needs to know too. It can't see the Host passed from the >> client until it has already started reading the request, which it >> can't do until it has done an SSL handshake. How would it know >> whether to do that or not, if port 80 is getting both SSL and non-SSL >> connections? > > May be my knowledge of Apache configuration is not good, but there are > specific directives for SSL : > > HTTP site : > >ServerName site1.mondomaine.org >DocumentRoot /site1 > > > HTTPS site : > >ServerName site2.mondomaine.org >DocumentRoot /site2 >SSLEngine on >SSLCertificateFile /ssl/site2.cert >SSLCertificateKeyFile /ssl/site2.key > > > I think that Apache knows that site1 is only HTTP and site2 is HTTPS. > Isn't it OK ? No, Apache has no chance to choose the 2nd vhost in time to be able to do an SSL handshake. -- Eric Covener [EMAIL PROTECTED] - 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] Apache and writing to NFS
Frank Kimbell wrote: Hello, I am trying a script (PHP) that writes files to disk. Now, writing the files locally works file, if I have a write-to directory owned apache:apache. Files created are owned apache:apache by default. But, I want to try this: I have an NFS share that has a large amount of space. I want the files to be written on there. So, I mount the NFS share as a directory and chown it apache:apache. Even chmodded it 777 just to be sure. It keeps failing when writing to it. I get the following error: failed to open stream: Stale NFS file handle in script.php on line 6 (line 6 contains the php-fwrite command) I don't think this is related to PHP, but to Apache that has permission problems writing to an NFS share. I am using Apache 2.2 and PHP5. SELinux is OFF. Any idea? If you su to the apache user, can you create a new file in the same directory? If not, then the permissions will need to be fixed so the apache user has write access to that directory. If so, then apache should have no problem writing to the directory from a script. Considering the error message states "Stale NFS file handle", it sounds like something might be wrong with the NFS mount or possibly the network connection between the server machine and client machine. You can try checking the system logs on both machines (/var/log/syslog) to see if anything useful shows up in there. There might also be something in /var/log/kern.log. -- Justin Pasher - 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] Re: HTTPS connexion on the port 80
Le Mon, 10 Nov 2008 15:55:17 -0500, Dan Poirier <[EMAIL PROTECTED]> a écrit : > David BERCOT <[EMAIL PROTECTED]> writes: > > Le Mon, 10 Nov 2008 06:59:54 -0500, > > "Eric Covener" <[EMAIL PROTECTED]> a écrit : > >> On Mon, Nov 10, 2008 at 2:03 AM, David BERCOT <[EMAIL PROTECTED]> > >> wrote: > >> > >> > Yes, but no ;-) > >> > I want https traffic on port 80, nor 443 !!! > >> > >> You can't do that, because the client needs to know whether to > >> speak http or https as soon as they send any data, and apache > >> won't just try to interpret it either way. > > > > But the client knows what to speak because I tell him : > > httpS://site3.mondomaine:80/ > > Apache needs to know too. It can't see the Host passed from the > client until it has already started reading the request, which it > can't do until it has done an SSL handshake. How would it know > whether to do that or not, if port 80 is getting both SSL and non-SSL > connections? May be my knowledge of Apache configuration is not good, but there are specific directives for SSL : HTTP site : ServerName site1.mondomaine.org DocumentRoot /site1 HTTPS site : ServerName site2.mondomaine.org DocumentRoot /site2 SSLEngine on SSLCertificateFile /ssl/site2.cert SSLCertificateKeyFile /ssl/site2.key I think that Apache knows that site1 is only HTTP and site2 is HTTPS. Isn't it OK ? David. - 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] unusual return (permanently migrated)
On Sun, Nov 9, 2008 at 1:24 PM, Mohan gupta <[EMAIL PROTECTED]> wrote: > thanks man for replying ... > actually the program is my one made > iam trying to make a web crawler so iam using unix socket api's > as i use > write(sockfd,"GEt url HTTP 1.1\r\nHost:\r\n\r\n",30); > and then read it > read(sockfd,buf,sizeof(buf)); > > but i dont understand what do u mean by redirect ...i mean when someone > redirects it gives a nrw url to follow? > where do you find that url in the reply if it does so??? When a server responds with an http result code of "302" it is telling you that the resource you requested really exists at some other urls. The "Location" header in the response contains the real URL for the resource. Your crawler should then request this redirect in stead. Browsers usually do this without the user even noticing it. However, if you really want to write your own crawler you should start by reading a bit about the http protocol. There are more result codes that your program might need to be aware of. Krist -- [EMAIL PROTECTED] [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - 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] High CPU usage with MPM Worker/Event
Frankly speaking I don't know how many processes should be and how many I need. I want to learn - why is CPU worker usage so high? Constantly ~300-500 ESTAB connections. My server-status you have seen. The number of processes is ~20-25. On other server I have tried to use the following settings: ServerLimit 5 ThreadLimit 125 StartServers 4 MaxClients 500 MinSpareThreads 25 MaxSpareThreads 125 ThreadsPerChild 100 MaxRequestsPerChild 0 The number of processes: ~10-15. But the situation with CPU is the same. On Mon, Nov 10, 2008 at 01:01:49PM +0530, Arnab Ganguly wrote: > Hi , > Can you please tell me about your requirements like for example how many > processes do you want to create for handling the request, it seems to me the > number of processes are very high, you can try out increasing the number of > threads per process that way you can reduce the number of processes, also > introduce ThreadLimit param in order to increase the ThreadsPerChild.Let me > know if I can help you. > Thanks > -A > > On Sun, Nov 9, 2008 at 10:31 PM, Alexey Vlasov <[EMAIL PROTECTED]> wrote: > > > Hi. > > > > I set MaxRequestPerChild = 400 (400 is average quantity of ESTABLISHED > > connections), but it was only worse. > > > > On Thu, Nov 06, 2008 at 12:01:00PM +0530, Arnab Ganguly wrote: > > > Hi, > > > Can you try with Non-zero MaxRequestPerChild value.Keep a value which is > > > equal to number of request are particular process you want to handle.Once > > it > > > is done the process will be killed and a new process is going to be > > > started.I guess your CPU usage should come down. > > > Thanks > > > -A > > > > > > On Thu, Nov 6, 2008 at 2:49 AM, Alexey Vlasov <[EMAIL PROTECTED]> > > wrote: > > > > > > > Hi. > > > > > > > > Working with Apache I noticed one strange thing such as high > > consumption > > > > of CPU. > > > > > > > > It looks like this. > > > > server status: > > > > Parent Server Generation: 2 > > > > Server uptime: 27 minutes 54 seconds > > > > Total accesses: 137589 - Total Traffic: 6.1 GB > > > > CPU Usage: u80.91 s52.19 cu0 cs0 - 7.95% CPU load > > > > 82.2 requests/sec - 3.7 MB/second - 46.2 kB/request > > > > 62 requests currently being processed, 38 idle workers > > > > > > > > Especially remarkable is that Top gives - % > > > > PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND > > > > 11978 www 20 0 458m 111m 2000 S 0.7 0:01.66 > > > > /opt/apache/2.2.9/sbin/httpd -k start > > > > 18151 www 20 0 453m 106m 1996 S4 0.7 0:00.30 > > > > /opt/apache/2.2.9/sbin/httpd -k start > > > > 18911 www 20 0 333m 100m 1984 S3 0.6 0:00.09 > > > > /opt/apache/2.2.9/sbin/httpd -k start > > > > 18942 www 20 0 421m 101m 1996 S2 0.6 0:00.07 > > > > /opt/apache/2.2.9/sbin/httpd -k start > > > > > > > > Accounting also shows high consumption of CPU. > > > > > > > > I don't know how it really should be, but I think it's not quite > > normal. > > > > Can it be peculiarity or feature of my configuration? Well I really > > need > > > > some advice from those who use worker/event. Thanks in advance. > > > > > > > > Configuration of my box: > > > > 2 x Quad-core CPUs Intel Xeon E5345 linux-2.6.25, gcc-4.1.2, libc-2.6.1 > > > > > > > > Apache-2.2.9 make options: > > > > CFLAGS="-O3 -march=nocona -pipe -fPIC -fomit-frame-pointer -ftracer > > > > -mfpmath=sse" > > > > > > > > mpm config: > > > > > > > >ServerLimit 48 > > > >StartServers 4 > > > >MaxClients 1200 > > > >MinSpareThreads 25 > > > >MaxSpareThreads 75 > > > >ThreadsPerChild 25 > > > >MaxRequestsPerChild 0 > > > > > > > > > > > > Example of my virtualhost: > > > > > > > > > > > >FCGIWrapper /path_to_phpwrapper > > > > > > > >CustomLog path_to_log combined > > > >ErrorLog path_to_log > > > >DocumentRoot /path_to_docroot > > > >SetEnv PHPRC /path_to_php.ini > > > > > > > >php_admin_value *** *** > > > > > > > >ServerName example.com > > > >ServerAlias www.example.com > > > >ServerAlias www1.example.com > > > >AddHandler server-parsed .htm > > > >AddHandler server-parsed .html > > > >AddHandler server-parsed .shtm > > > >AddHandler server-parsed .shtml > > > >RewriteEngine On > > > >RewriteCond *** *** > > > ># some rules for backend > > > >RewriteRule *** *** [NC,L,P] > > > >SuexecUserGroup user group > > > > > > > > > > > > Total number of virtual hosts is about 2000. > > > > > > > > -- > > > > BRGDS. Alexey Vlasov. > > > > > > > > - > > > > 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 dig
[EMAIL PROTECTED] Re: HTTPS connexion on the port 80
David BERCOT <[EMAIL PROTECTED]> writes: > Le Mon, 10 Nov 2008 06:59:54 -0500, > "Eric Covener" <[EMAIL PROTECTED]> a écrit : >> On Mon, Nov 10, 2008 at 2:03 AM, David BERCOT <[EMAIL PROTECTED]> >> wrote: >> >> > Yes, but no ;-) >> > I want https traffic on port 80, nor 443 !!! >> >> You can't do that, because the client needs to know whether to speak >> http or https as soon as they send any data, and apache won't just try >> to interpret it either way. > > But the client knows what to speak because I tell him : > httpS://site3.mondomaine:80/ Apache needs to know too. It can't see the Host passed from the client until it has already started reading the request, which it can't do until it has done an SSL handshake. How would it know whether to do that or not, if port 80 is getting both SSL and non-SSL connections? -- Dan Poirier <[EMAIL PROTECTED]> - 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] HTTPS connexion on the port 80
Le Mon, 10 Nov 2008 06:59:54 -0500, "Eric Covener" <[EMAIL PROTECTED]> a écrit : > On Mon, Nov 10, 2008 at 2:03 AM, David BERCOT <[EMAIL PROTECTED]> > wrote: > > > Yes, but no ;-) > > I want https traffic on port 80, nor 443 !!! > > You can't do that, because the client needs to know whether to speak > http or https as soon as they send any data, and apache won't just try > to interpret it either way. But the client knows what to speak because I tell him : httpS://site3.mondomaine:80/ David. - 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] Apache and writing to NFS
Hello, I am trying a script (PHP) that writes files to disk. Now, writing the files locally works file, if I have a write-to directory owned apache:apache. Files created are owned apache:apache by default. But, I want to try this: I have an NFS share that has a large amount of space. I want the files to be written on there. So, I mount the NFS share as a directory and chown it apache:apache. Even chmodded it 777 just to be sure. It keeps failing when writing to it. I get the following error: failed to open stream: Stale NFS file handle in script.php on line 6 (line 6 contains the php-fwrite command) I don't think this is related to PHP, but to Apache that has permission problems writing to an NFS share. I am using Apache 2.2 and PHP5. SELinux is OFF. Any idea? TY - 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] Running programs...
Hi, could anyone point me to a log file or suexec or something? The standard apache error log shows nothing about my problem. - 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] 403 Error - Bugzilla CGI and Apace 2.2
Thanks for your reply Eric; I check the log and I had a message in there that said CGI was not on for this folder. Originally I had added a directory entry for the Bugzilla folder where the code is but I had a syntax error in it, I have fixed the error and restarted apache and now when I try to start bugzilla I get an error stating that it cannot find the file index.cgi. It seems to me that it may be in the Directory configuration. I am going to look back at the docs possibly using the back httpd.conf file I have and start again! Thanks! - Original Message From: Eric Covener <[EMAIL PROTECTED]> To: users@httpd.apache.org; Bill Ferrarini <[EMAIL PROTECTED]> Sent: Monday, November 10, 2008 8:53:02 AM Subject: Re: [EMAIL PROTECTED] 403 Error - Bugzilla CGI and Apace 2.2 On Mon, Nov 10, 2008 at 8:44 AM, Bill Ferrarini <[EMAIL PROTECTED]> wrote: > Hi everyone; > > When I try to execute index.cgi I get a 403 error. I have gone through the > install docs several times making sure I covered everything and I have come > to the point where I just don't know where to go next. > The corresponding error log entry will tell you where to go next. -- Eric Covener [EMAIL PROTECTED] - 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] - 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] Location/locationmatch on Windows install
Eric, Ok, I can do the pastebin thing, but I don't think we need to. New code tested is: ServerName yippidy.doodaa.com DocumentRoot "D:/oas10gR2/Apache/Apache/htdocs/testfororacle" DirectoryIndex index.htm ServerAdmin [EMAIL PROTECTED] Alias /htdocs D:/oas10gR2/Apache/Apache/htdocs/ RewriteLog "D:/oas10gR2/Apache/Apache/logs/testfororacle_rewrite.log" RewriteLogLevel 9 # # order deny,allow #allow from all RewriteEngine On RewriteRule ^/(.*)$ http://yippidy.doodaa.com/index.html.en [L,R] # Applicable rewritelog entries are at http://testfororacle.pastebin.com/m7540a23. The rewrite works just fine. I'm sorry if you didn't get a chance to read all the way into my first post, but that's consistent with what I posted. The issue the whole time is why locationmatch / location is hitting and works fine on Linux and not on a Windows install. I need a LocationMatchLog or LocationLog file!! :) Todd -- Todd Randall Sr. Programmer/Analyst - Oracle DBA SUNY ITEC 1300 Elmwood Ave TR 200 Buffalo, NY 14222 Work: 716-878-4832 (receptionist/to leave a message) Work: 716-878-3128 (Direct) Cell: 716-863-7097 -Original Message- From: Randall, Todd [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 8:58 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Location/locationmatch on Windows install It's not the rewrite I'm having the issue with. If I remove the locationmatch or location directives it rewrites perfectly fine. For whatever reason, I cannot get the locationmatch or location directives to "kick in" on a windows platform install. Any unix/linux platform install with the same exact code works perfectly fine. I will have to google pastebin as I have no idea what that is. Thanks again, and willing to try anything, Todd -Original Message- From: Eric Covener [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 8:55 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd <[EMAIL PROTECTED]> wrote: > Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log now. > > When I hit that URL I get: > > (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri > 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html' > (1) [per-dir /htdocs/] pass through > d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html > > I don't understand that, but does it confirm what you were thinking? > What should I change it to for a test? No -- I am surprised that it's testing against something that looks like an absolute filesystem path instead of a partial URL. To simplify, don't put your Rewrite directives inside any Location/Directory containers. Maybe you could pastebin the entire log? -- Eric Covener [EMAIL PROTECTED] - 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] - 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] - 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] Location/locationmatch on Windows install
It's not the rewrite I'm having the issue with. If I remove the locationmatch or location directives it rewrites perfectly fine. For whatever reason, I cannot get the locationmatch or location directives to "kick in" on a windows platform install. Any unix/linux platform install with the same exact code works perfectly fine. I will have to google pastebin as I have no idea what that is. Thanks again, and willing to try anything, Todd -Original Message- From: Eric Covener [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 8:55 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd <[EMAIL PROTECTED]> wrote: > Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log now. > > When I hit that URL I get: > > (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri > 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html' > (1) [per-dir /htdocs/] pass through > d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html > > I don't understand that, but does it confirm what you were thinking? > What should I change it to for a test? No -- I am surprised that it's testing against something that looks like an absolute filesystem path instead of a partial URL. To simplify, don't put your Rewrite directives inside any Location/Directory containers. Maybe you could pastebin the entire log? -- Eric Covener [EMAIL PROTECTED] - 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] - 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] Location/locationmatch on Windows install
On Mon, Nov 10, 2008 at 8:42 AM, Randall, Todd <[EMAIL PROTECTED]> wrote: > Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log now. > > When I hit that URL I get: > > (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri > 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html' > (1) [per-dir /htdocs/] pass through > d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html > > I don't understand that, but does it confirm what you were thinking? > What should I change it to for a test? No -- I am surprised that it's testing against something that looks like an absolute filesystem path instead of a partial URL. To simplify, don't put your Rewrite directives inside any Location/Directory containers. Maybe you could pastebin the entire log? -- Eric Covener [EMAIL PROTECTED] - 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] 403 Error - Bugzilla CGI and Apace 2.2
On Mon, Nov 10, 2008 at 8:44 AM, Bill Ferrarini <[EMAIL PROTECTED]> wrote: > Hi everyone; > > When I try to execute index.cgi I get a 403 error. I have gone through the > install docs several times making sure I covered everything and I have come > to the point where I just don't know where to go next. > The corresponding error log entry will tell you where to go next. -- Eric Covener [EMAIL PROTECTED] - 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] 403 Error - Bugzilla CGI and Apace 2.2
Hi everyone; Let me introduce myself, my name is Bill and I am new to this list. I have just taken a position where I will be responsible for all the CASE tools we use. I am currently reviewing different defect trackers and other software. I have installed Apache 2.2 on a Windows 2003 Server and I have installed Bugzilla, following the directions I obtained on both the Bugzilla site and the Apache site. Everything has worked until I attempted to access bugzilla for the first time. When I try to execute index.cgi I get a 403 error. I have gone through the install docs several times making sure I covered everything and I have come to the point where I just don't know where to go next. I was hoping some of you could help me out at this point! Keep in mind that Mantis and TestLink are running fine on this same server, however the do not use CGI or perl. I feel it's definitely a config problem but like I said I am too green at this to know where to go next! Thank you everyone! Bill - 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] Location/locationmatch on Windows install
Ok, I added RewriteLog and RewriteLogLevel 9 and have a rewrite log now. When I hit that URL I get: (3) [per-dir /htdocs/] applying pattern '^/(.*)$' to uri 'd:/oas10gr2/apache/apache/htdocs//testfororacle/index.html' (1) [per-dir /htdocs/] pass through d:/oas10gr2/apache/apache/htdocs//testfororacle/index.html I don't understand that, but does it confirm what you were thinking? What should I change it to for a test? Todd -Original Message- From: Eric Covener [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 8:32 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install On Mon, Nov 10, 2008 at 8:14 AM, Randall, Todd <[EMAIL PROTECTED]> wrote: > Thanks Andre, > > I'm all for trying anything at this point, no matter how far of a long shot it is. > > Here was my latest test: > > >ServerName yippidy.doodaa.com >DocumentRoot "D:/oas10gR2/Apache/Apache/htdocs/testfororacle" >DirectoryIndex index.htm >Alias /htdocs D:/oas10gR2/Apache/Apache/htdocs/ > > >order deny,allow >allow from all >RewriteEngine On >RewriteRule ^/(.*)$ http://yippidy.doodaa.com/index.html.en [L,R] > > > > > I then tried going to the url http://yippidy.doodaa.com/htdocs/testfororacle/index.html hoping it would rewrite to http://yippidy.doodaa.com/index.html.en, but alas, it did not :-( Doesn't "^/" always fail to match when used inside Location/Directory just like in htaccess? See RewriteLog. -- Eric Covener [EMAIL PROTECTED] - 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] - 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] Location/locationmatch on Windows install
On Mon, Nov 10, 2008 at 8:14 AM, Randall, Todd <[EMAIL PROTECTED]> wrote: > Thanks Andre, > > I'm all for trying anything at this point, no matter how far of a long shot > it is. > > Here was my latest test: > > >ServerName yippidy.doodaa.com >DocumentRoot "D:/oas10gR2/Apache/Apache/htdocs/testfororacle" >DirectoryIndex index.htm >Alias /htdocs D:/oas10gR2/Apache/Apache/htdocs/ > > >order deny,allow >allow from all >RewriteEngine On >RewriteRule ^/(.*)$ http://yippidy.doodaa.com/index.html.en [L,R] > > > > > I then tried going to the url > http://yippidy.doodaa.com/htdocs/testfororacle/index.html hoping it would > rewrite to http://yippidy.doodaa.com/index.html.en, but alas, it did not :-( Doesn't "^/" always fail to match when used inside Location/Directory just like in htaccess? See RewriteLog. -- Eric Covener [EMAIL PROTECTED] - 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] Location/locationmatch on Windows install
Thanks Andre, I'm all for trying anything at this point, no matter how far of a long shot it is. Here was my latest test: ServerName yippidy.doodaa.com DocumentRoot "D:/oas10gR2/Apache/Apache/htdocs/testfororacle" DirectoryIndex index.htm Alias /htdocs D:/oas10gR2/Apache/Apache/htdocs/ order deny,allow allow from all RewriteEngine On RewriteRule ^/(.*)$ http://yippidy.doodaa.com/index.html.en [L,R] I then tried going to the url http://yippidy.doodaa.com/htdocs/testfororacle/index.html hoping it would rewrite to http://yippidy.doodaa.com/index.html.en, but alas, it did not :-( Put the exact same code in on a Linux box, it worked perfectly fine! Todd -- Todd Randall Sr. Programmer/Analyst - Oracle DBA SUNY ITEC 1300 Elmwood Ave TR 200 Buffalo, NY 14222 Work: 716-878-4832 (receptionist/to leave a message) Work: 716-878-3128 (Direct) Cell: 716-863-7097 -Original Message- From: André Warnier [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 2:48 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install Hi. I am not commenting on your basic issue, but on your DocumentRoot under Windows. Isn't there a note somewhere in the Apache on-line configuration help that mentions that *even under Windows*, you should use forward slashes as directory separators ? Like : DocumentRoot "D:/oas10gR2/Apache/Apache/htdocs/testfororacle" instead of DocumentRoot "D:\oas10gR2\Apache\Apache\htdocs\testfororacle" (I know that I personally always use forward slashes, and it works fine; it also saves me having to retype things when moving between Windows and Linux). It's a long shot, but isn't there something around there that maybe is playing tricks with your matches or locations ? Randall, Todd wrote: > Thanks Tom for the reply, > > I'll have to look up how to whack up the log level and where to find the > whacked up rewrite log :) Seriously, though, I don't know what log > level we need to be at to get a rewrite log or whether or not I need to > specify a rewrite log location. > > I used LocationMatch because I will have users coming in on lets say > these 3 "like" urls: > > https://yippidy.doodaa.com:8543/pls/test/something.something/moreofstuff > Idon'tknow > https://yippidy.doodaa.com:8643/pls/devl/something.something/moreofstuff > Idon'tknow > https://yippidy.doodaa.com:8743/pls/prod/something.something/moreofstuff > Idon'tknow > > Notice the differences in ports and the only difference in the url being > the port and the test/devl/prod. There might be a firewall that sits in > front that only allows world access to prod's port, whereas test and > devl access stay on the local lan. > > Nothing in the application will prevent a user from typing in "test" on > the "prod" port and successfully gain access to the test side from > outside the local lan. > > So a simple "fix", at least to me, was to test to see if they were > coming in on a "prod" url, make sure it is on the prod port, and if not, > simply rewrite it to be so. If they were coming in on a "test" url but > on the prod port, it'd get rewritten to test's port and the firewall > would prevent access if they were outside the local lan. If it's just > as easy to do that with rewrite conditions, I'm all ears, but I could > really use the help with syntax, I'm just a lowly Oracle DBA :) > > Todd > > > -Original Message- > From: Tom Evans [mailto:[EMAIL PROTECTED] > Sent: Friday, November 07, 2008 10:47 AM > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] Location/locationmatch on Windows install > > On Fri, 2008-11-07 at 07:44 -0500, Randall, Todd wrote: >> Hi All, >> >> I've searched and searched and can't find any pertinent info. Please >> believe me, I'm sending to this list as my last resort. >> >> Is there some trick to location or locationmatch syntax on an Apache > on >> Windows installation vs. an Apache on Unix / Linux installation? I >> suppose I should also tell you this is Apache built into the Oracle >> Application Server, which is an older version, 1.3.31.0.0. I also > have >> a support ticket open with Oracle for a good week now. >> >> I have this code, at the very end of the httpd.conf file, on a Linux >> installation, and it works perfectly fine: >> >> >> RewriteEngine On >> RewriteCond %{SERVER_PORT} !^8543$ >> RewriteRule ^/(.*)$ https://yippidy.doodaa.com:8543%{REQUEST_URI} >> [L,R] >> > > Why a LocationMatch, instead of a RewriteCond ? Does it work with a > RewriteCond? (With LocationMatch, we have to think "did we trigger the > location match? If we did, did our RewriteRule match?", with > RewriteCond, all we have to think is "Did our cond match, what happened > when our rewrite happened", all of which can be answered by whacking on > the rewrite log and whacking up the log level.) > >> The same exact version/installation of Apache on a Windows XP S
Re: [EMAIL PROTECTED] HTTPS connexion on the port 80
On Mon, Nov 10, 2008 at 2:03 AM, David BERCOT <[EMAIL PROTECTED]> wrote: > Yes, but no ;-) > I want https traffic on port 80, nor 443 !!! > You can't do that, because the client needs to know whether to speak http or https as soon as they send any data, and apache won't just try to interpret it either way. -- Eric Covener [EMAIL PROTECTED] - 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]