Re: [EMAIL PROTECTED] Unwanted URL rewriting - apache replaces server name with ip in address bar
This may not help you, but NameVirtualHost 1.2.3.4 says that you want to use that IP for name based virtual hosts. However, you've got a Serveralias 1.2.3.4 which means that you want this IP also respond to your VirtualHost (i.g. you are really trying to do a IP based virtualhost). You don't need the NameVirtualHost line, nor do you need the ServerAlias 1.2.3.4 line if you are only hosting on site on 1.2.3.4. --Victor On 5/6/07, akhayyami <[EMAIL PROTECTED]> wrote: I have a problem with one of my servers; When I enter http://www.myserver.com in address bar (IE & Firefox), apache replaces the server name (e.g. www.myserver.com) with an ip address. I tried with & without virtual hosts but no chance. I also tried UseCanonicalName with yes & no. How can I disable this? This is my virtualhost config: NameVirtualHost 1.2.3.4:80 ServerName www.myserver.com UseCanonicalName Off ServerAlias myserver.com ServerAlias 1.2.3.4 CustomLog /etc/httpd/logs/myserver-access.log combined ErrorLog /etc/httpd/logs/myserver-error.log LogLevel info DocumentRoot /home/tomcat/webapps DirectoryIndex index.html index.htm index.shtml index.jsp JkAutoAlias /home/tomcat/webapps JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /*.do ajp13 # Deny direct access to WEB-INF deny from all Thanks. -- View this message in context: http://www.nabble.com/Unwanted-URL-rewriting---apache-replaces-server-name-with-ip-in-address-bar-tf3700638.html#a10348497 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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] -- http://www.victortrac.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]
Re: [EMAIL PROTECTED] LDAP / Active Directory Authentication problem.
Nobody can help me ? Nobody else has this problem ? I can't imagine that's an apache bug :) Should I ask my users not to use special chars in their password ? :( Thanks Christophe BOULAIN a écrit : Hi Anybody has an idea for my problem ? I tried ti sniff ldap packets, and I noticed that apache does not encode the password in UTF-8 : a 'é' in password is encode E9 (iso code), and when I try the same thing with LDAPSEARCH, the same letter is encoded C3E9 (utf-8 code) Is this relative to mod_ldap, or to apache configuration ? Thanks. I really need to authenticate my users ;) Christophe BOULAIN a écrit : Hi, I am trying to set up a reverse authenticated proxy for an internal site of my company. The authentication is done on a Microsoft Active Directory Everything works almost fine, but I'm running into problem when users has special chars (ex accentued letters) in their password. They are rejected with an invalid password. When I try to bind to ldap with a such user with ldapsearch command, if the password is UTF-8 encoded, it's ok, if not, password is rejected How can I tell apache to use UTF-8 when doing authentification, or to convert the username/password to UTF-8 before binding to ldap ? I already try to set AddDefaultCharset to utf-8, but that doesn(t help. Server info : Gentoo Linux, apache-2.0.59 Thanks a lot. Regards, Christophe. - 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]
[EMAIL PROTECTED] Query on MaxRequestperChild
Hi All, I have made the MaxRequestsPerChild set to zero but I still see the child process to getting killed by either SIGBUS (10) or SIGSEV(11) and apache launches a new daemon.This happens approximately if it gets hit by 1 request with 800 concurrent users.Looking forward for response. Thanks -A
[EMAIL PROTECTED] one more on MaxRequestPerChild
Hi All, Is it possible that Apache launches a new process due to overlaod even before the MaxRequestPerChild is met? Thanks -A
Re: [EMAIL PROTECTED] one more on MaxRequestPerChild
On May 7, 2007, at 6:07 AM, Arnab Ganguly wrote: Hi All, Is it possible that Apache launches a new process due to overlaod even before the MaxRequestPerChild is met? Thanks -A Apache will always try to maintain an idle pool of processes/threads between Min/MaxSpareServers|Threads, so it will create or kill processes/threads in order to achieve that. Assuming you have not hit MaxClients and Apache needs to create more process/threads to handle the load, yes, it will do do. As things slow down it will also kill off idle threads/processes to maintain the correct size idle pool. - 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 2.2.24, mysql auth and vhosts
Does anyone actually have 2.2.4 with mod_dbd and mysql authing working? I logged a bug as my testing shows it does not do what the docs state, and it was closed with the simple statement of " it works for me " which might be great for him but not so for us :) If you do, am I leaving something out? Surely I dont have to go back to apache 1.3 just to have working database authentication. in global I have : DBDriver mysql DBDParams "host=hidden dbname=hidden user=hidden pass=hidden" DBDPersist off (The docs state these can all even be used in vhost block, but apache fails to restart saying they are NOT allowed there so I left them in global where it appears happier) in a virtualhost block I have: AuthName "Members" AuthType Basic AuthBasicProvider dbd AuthDBDUserPWQuery "SELECT user_passwd FROM user_info WHERE user_name = %s" Require valid-user ~# /usr/local/apache/bin/httpd -l | grep dbd mod_authn_dbd.c mod_dbd.c Am using apr_dbd_mysql.c in /usr/local/src/httpd-2.2.4/srclib/apr-util/dbd did a buildconf and ./configure --with-apr=../apr etc... ~#ldd /usr/local/apache/bin/httpd | grep libmysqlclient_r libmysqlclient_r.so.15 => /usr/lib/mysql/libmysqlclient_r.so.15 (0x40038000) Now mysql reports it connects and logins in to the database but does not do a query, it disconnects right away, the apache logs report "No DBD Authn configured!" and the user gets a 500 int server error.. Anyone have any pointers? TIA Res - 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] single webpage redirect
That makes sense. Anyhow, I took your advice from the previous post and once again I would like to thank you for your help, all it working just as I asked. Dave Joshua Slive <[EMAIL PROTECTED]> wrote: On 5/6/07, Dave Henderson wrote: > You were right, that worked like a charm! Why wouldn't a ServerAlias > provide the same functionality? Because with a ServerAlias, the redirect will again hit the same , causing the redirect to applied again, causing a loop. You need the separate so that one name will be redirected and the other won't. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Query on MaxRequestperChild
On 5/7/07, Arnab Ganguly <[EMAIL PROTECTED]> wrote: Hi All, I have made the MaxRequestsPerChild set to zero but I still see the child process to getting killed by either SIGBUS (10) or SIGSEV(11) and apache launches a new daemon.This happens approximately if it gets hit by 1 request with 800 concurrent users.Looking forward for response. Apache does not use SIGBUS or SIGSEV to control its child processes. These signals indicate a flaw in apache or (more likely) a module you have included. To debug them, you'll need a backtrace from a core dump. See: http://httpd.apache.org/dev/debugging.html#crashes Joshua. - 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] ErrorDocument 401 problem
Hi, I'm using apache 1.3.34. I try to do a redirection on an 401 error in a virtual host. I saw in the apache FAQ I had to use ErrorDocument 401 /foo/bar So, that's what I've done. Here is the virtual host description : NameVirtualHost *:80 ServerName toto.ircad.fr DocumentRoot /var/www/sites ErrorDocument 401 /var/www/sites/untranet_redirect/index.php AuthType Basic Options Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all As you can see, the redirection should be done to the file /var/www/sites/untranet_redirect/index.php when an 401 error occurs. Unfortunately, I get always the following error : [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! when I access the virtual host. For your information, I also tried with an ErrorDocument 401 /untranet_redirect/index.php with no more luck, and even ErrorDocument 401 /untranet_redirect which doesn't work better. I also tried to put the ErrorDocument line into the tag. It does not work. The directory /var/www/sites/untranet_redirect exists, and the file index.php in it too. Can someone help me with this ? Thanks, Christian - 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] httpd and mod_acces
I had installed apache 2.0 from Centos, when I try to run httpd I get an error: httpd: Syntax error on line xxx of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory I need to add this module (mod_access) to my server, how I do that? Thanks! Ana __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas
Re: [EMAIL PROTECTED] httpd and mod_acces
On 5/7/07, Ana Carolina <[EMAIL PROTECTED]> wrote: I had installed apache 2.0 from Centos, when I try to run httpd I get an error: httpd: Syntax error on line xxx of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory I need to add this module (mod_access) to my server, how I do that? Does /etc/httpd/modules/mod_access.so exist? Are you sure it is compiled for the same version of apache as the main server? In general, install problems like this are better address on a forum related to the people who built apache for you. In this case, that would be Centos. They are the ones who know how things are setup on their platform. Joshua. - 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] ErrorDocument 401 problem
On 5/7/07, Christian HAESSIG <[EMAIL PROTECTED]> wrote: ErrorDocument 401 /var/www/sites/untranet_redirect/index.php As you can see, the redirection should be done to the file /var/www/sites/untranet_redirect/index.php when an 401 error occurs. Unfortunately, I get always the following error : [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! ErrorDocument must be a web-path -- that is, relative to the DocumentRoot, not the filesystem root. But that isn't the main problem here. Apache will only give you that error message if the ErrorDocument doesn't start with a "/". So there must be somethign else funny going on here. Perhaps you are editing the wrong config file? Perhaps there is an .htaccess file someplace with a faulty ErrorDocument? Joshua. - 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] ErrorDocument 401 problem
Thanks very much, Joshua ; you were right : our web developpers put a faulty .htaccess. Christian > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Joshua > Slive > Envoyé : lundi 7 mai 2007 17:47 > À : users@httpd.apache.org > Objet : Re: [EMAIL PROTECTED] ErrorDocument 401 problem > > > On 5/7/07, Christian HAESSIG <[EMAIL PROTECTED]> wrote: > > > ErrorDocument 401 /var/www/sites/untranet_redirect/index.php > > > As you can see, the redirection should be done to the file > > /var/www/sites/untranet_redirect/index.php when an 401 error occurs. > > Unfortunately, I get always the following error : > > > > [notice] cannot use a full URL in a 401 ErrorDocument directive --- > > ignoring! > > ErrorDocument must be a web-path -- that is, relative to the > DocumentRoot, not the filesystem root. > > But that isn't the main problem here. Apache will only give you that > error message if the ErrorDocument doesn't start with a "/". So there > must be somethign else funny going on here. > > Perhaps you are editing the wrong config file? Perhaps there is an > .htaccess file someplace with a faulty ErrorDocument? > > Joshua. > > - > 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]
[EMAIL PROTECTED] Backup authentication method in apache
Hello. I have been searching for some way to use two (or more) authentication methods in a directory with the objective to use the first one like the main module (i.e. LDAP) and the other one as backup module (i.e. mod_auth) in case the first one fails for causes like LDAP server down, network connection problems, etc ... By now the only way i found it's using pam or with a symbolic link but first i prefer to know if there are one more simple method to make this. Thanks - 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] cgi-bin in VirtualHost
Hello, I don't seem to be able to make CGI work within . Here is my VirtualHost block: Options ExecCGI SetHandler cgi-script ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/shop1/htdocs ScriptAlias /cgi-bin/ /home/shop1/cgi-bin/ ServerName www.mydomain.com ErrorLog /home/shop1/htdocs/stats/httpd-error.log CustomLog /home/shop1/htdocs/stats/httpd-access.log combined The test-cgi script works fine from the command line. However, I get a "Forbidden" message, and the log file entry is "client denied by server configuration: /home/shop1/cgi-bin/test-cgi" What am I missing? I use apache-2.0.59 on FreeBSD 6.2. - 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] cgi-bin in VirtualHost
On 5/7/07, Joe Demeny <[EMAIL PROTECTED]> wrote: Hello, I don't seem to be able to make CGI work within . Here is my VirtualHost block: Options ExecCGI SetHandler cgi-script Everything inside the section is redundant because it is implied by the ScriptAlias: ScriptAlias /cgi-bin/ /home/shop1/cgi-bin/ The test-cgi script works fine from the command line. However, I get a "Forbidden" message, and the log file entry is "client denied by server configuration: /home/shop1/cgi-bin/test-cgi" Try adding Order allow,deny Allow from all to the section above. Joshua. - 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] cgi-bin in VirtualHost
At 01:24 PM 5/7/2007, you wrote: On 5/7/07, Joe Demeny <[EMAIL PROTECTED]> wrote: Hello, I don't seem to be able to make CGI work within . Here is my VirtualHost block: Options ExecCGI SetHandler cgi-script Everything inside the section is redundant because it is implied by the ScriptAlias: ScriptAlias /cgi-bin/ /home/shop1/cgi-bin/ The test-cgi script works fine from the command line. However, I get a "Forbidden" message, and the log file entry is "client denied by server configuration: /home/shop1/cgi-bin/test-cgi" Try adding Order allow,deny Allow from all to the section above. Joshua. Thank you for the quick reply. It never occurred to me that I needed to add these permissions in the section. In the main configuration part I have user directories defined as: AllowOverride None Order allow,deny Allow from all I assumed that this definition was going to be "inherited" by the directives. Joe - 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] cgi-bin in VirtualHost
On 5/7/07, Joe Demeny <[EMAIL PROTECTED]> wrote: It never occurred to me that I needed to add these permissions in the section. In the main configuration part I have user directories defined as: AllowOverride None Order allow,deny Allow from all I assumed that this definition was going to be "inherited" by the directives. It is. But your cgi bin directory is not under /home/*/htdocs. If you have a bunch of sites, you may want to add a similar section for . Joshua. - 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] good book about apache 2.2
Alain wrote: > > I'm quite a rookie under apache 2.2, however i've noticed some changes > between apache 2.0 and apache 2.2 that are from my point of view quite > important. > Therefore, I would like to know if it exits some good books on apache 2.2 > ? > I've apache 2 bible but i've seen that modules management is different > under > v2.2. It's not an entire book, but O'Reilly publishes a "Short Cuts" document called "What's New in Apache Web Server 2.2?" for $10. See oreilly.com. It's also available on safari.informit.com. Some local libraries have subscriptions, so you might be able to take a look at it before you buy. Sheryl - 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] cgi-bin in VirtualHost
Joshua Slive wrote: > On 5/7/07, Joe Demeny <[EMAIL PROTECTED]> wrote: > >> It never occurred to me that I needed to add these permissions in the >> section. >> >> In the main configuration part I have user directories defined as: >> >> >> AllowOverride None >> Order allow,deny >> Allow from all >> >> >> I assumed that this definition was going to be "inherited" by the >> directives. > > It is. But your cgi bin directory is not under /home/*/htdocs. If you > have a bunch of sites, you may want to add a similar section for > . Keep in mind also that wildcard/regex match locations, directories and files are all applied after their non-pattern, explicit flavors. - 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] cgi-bin in VirtualHost
At 01:39 PM 5/7/2007, you wrote: On 5/7/07, Joe Demeny <[EMAIL PROTECTED]> wrote: It never occurred to me that I needed to add these permissions in the section. In the main configuration part I have user directories defined as: AllowOverride None Order allow,deny Allow from all I assumed that this definition was going to be "inherited" by the directives. It is. But your cgi bin directory is not under /home/*/htdocs. If you have a bunch of sites, you may want to add a similar section for . Joshua. Duuhh... thank you! Joe - 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] URI / SSL help please
Okay I have SSL up and working just fine on Apache 2.2.4. I have my Cert for 'mydomain.com' however when people access 'www.mydomain.com' the browser says that the CA didn't issue the certificate for the domain that the browser is accessing. Obviously this is due to the 'www.'. Now, I need to know how to fix that? How do I truncate 'www.' out of the URI before Apache processes the request? Or maybe its a redirect? Please help ... I am going NUTS! P.S I have a mod_rewrite condition that will kick all :80 over to :443 (so if you access the site using http:// it automatically goes to https://) -Thanks, Ryan
Re: [EMAIL PROTECTED] URI / SSL help please
On 5/7/07, Ryan Huff <[EMAIL PROTECTED]> wrote: Okay I have SSL up and working just fine on Apache 2.2.4. I have my Cert for 'mydomain.com' however when people access 'www.mydomain.com' the browser says that the CA didn't issue the certificate for the domain that the browser is accessing. Obviously this is due to the 'www.'. Now, I need to know how to fix that? How do I truncate 'www.' out of the URI before Apache processes the request? Or maybe its a redirect? Please help ... I am going NUTS! P.S I have a mod_rewrite condition that will kick all :80 over to :443 (so if you access the site using http:// it automatically goes to https://) If people are requesting directly (or linking to) https://www.mydomain.com/, then you are screwed. In order to redirect, you first need the request to go through the SSL negotiation, so they will get the warning message. If people are requesting http://www.mydomain.com/, then you should simply change your rewrite rules to send them over to https://mydomain.com/. If you need help with that, you'd need to provide more details about what you are doing. Joshua. - 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] URI / SSL help please
I have this in my conf: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Now that code chunk kicks all :80 traffic to https (:443) I need a rule that will also kick http://www. Over to https:// If someone access the site by http://www.whatever.com, I want it to goto https://%{HTTP_HOST}%{REQUEST_URI} -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Monday, May 07, 2007 3:36 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] URI / SSL help please On 5/7/07, Ryan Huff <[EMAIL PROTECTED]> wrote: > > > Okay I have SSL up and working just fine on Apache 2.2.4. > > I have my Cert for 'mydomain.com' however when people access > 'www.mydomain.com' the browser says that the CA didn't issue the > certificate for the domain that the browser is accessing. Obviously > this is due to the 'www.'. > > Now, I need to know how to fix that? How do I truncate 'www.' out > of the URI before Apache processes the request? Or maybe its a redirect? > Please help ... I am going NUTS! > > P.S > I have a mod_rewrite condition that will kick all :80 over to :443 (so > if you access the site using http:// it automatically goes to > https://) If people are requesting directly (or linking to) https://www.mydomain.com/, then you are screwed. In order to redirect, you first need the request to go through the SSL negotiation, so they will get the warning message. If people are requesting http://www.mydomain.com/, then you should simply change your rewrite rules to send them over to https://mydomain.com/. If you need help with that, you'd need to provide more details about what you are doing. Joshua. - 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] URI / SSL help please
On 5/7/07, Ryan Huff <[EMAIL PROTECTED]> wrote: I have this in my conf: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Now that code chunk kicks all :80 traffic to https (:443) I need a rule that will also kick http://www. Over to https:// If someone access the site by http://www.whatever.com, I want it to goto https://%{HTTP_HOST}%{REQUEST_URI} If you only have one site, this is easy: RewriteCond %{HTTPS} off RewriteRule ^/(.*) https://example.com/$1 If you want to be fancy and handle all domain names the same way: RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(www\.)?(.*) [NC] RewriteRule ^/(.*) https://%2/$1 (I'm assuming you're doing this in httpd.conf. To do it in an .htaccess would require a small adjustment.) Joshua. - 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] Disk-based Caching tmp files
Could someone explain why the CacheRoot on a front end proxy server (httpd-2.2.4, windows 2003) is filling up with so many files like aptmpZzwkBP at the root level? My understanding of the docs is that this shouldn't happen: "The overall aim of this technique [CacheDirLevels & CacheDirLength] is to reduce the number of subdirectories or files that may be in a particular directory, as most file-systems slow down as this number increases." - http://httpd.apache.org/docs/trunk/caching.html The disk cache configuration: CacheRoot "C:/webcache" CacheEnable disk / CacheDirLevels 3 CacheDirLength 1 Any enlightment would be appreciated. - 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] how to set icons aliase in apache
Hi I want apache server to use the JPEG images in the output html file . I think this can be done by setting the icons aliases. Can someone please guide me how I can set the icons aliase to access the directory containing the JPEG image. Thanks -- View this message in context: http://www.nabble.com/how-to-set-icons-aliase-in-apache-tf3706358.html#a10365726 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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]
[EMAIL PROTECTED] Error: connect() failure
Hi When I use my browser to access the input html page and submit the inputs I get Error: connect() failure. Whereas before restarting the sysstem I was getting the proper output html page. Can someone guide me what coould be wrong. . -- View this message in context: http://www.nabble.com/Error%3A-connect%28%29-failure-tf3706359.html#a10365727 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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]
[EMAIL PROTECTED] Apache Error_log - wrong error format
Hello, I'm a student of The Technical University of Gdansk (Poland) I'm curently working on a project which will use apache error_log file. In my project I'm using details from error_log entries (time, location) to show a statistic of dangerous errors that has been occured on server - for example: "[Fri May 04 20:04:23 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/index.php on line 5" Unfortunetly not every entries have correct format. For example: "Allowed memory size of 1048576 bytes exhausted (tried to allocate 2038853 bytes)" "mkdir: cannot create directory `haha': Permission denied" Why there are no details in that error logs like in others? apache v. 2.3.3 logformat httpd.conf is default I will be very grateful for your answer, Waldek - 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 Error_log - wrong error format
On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I'm a student of The Technical University of Gdansk (Poland) I'm curently working on a project which will use apache error_log file. In my project I'm using details from error_log entries (time, location) to show a statistic of dangerous errors that has been occured on server - for example: "[Fri May 04 20:04:23 2007] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/index.php on line 5" Unfortunetly not every entries have correct format. For example: "Allowed memory size of 1048576 bytes exhausted (tried to allocate 2038853 bytes)" "mkdir: cannot create directory `haha': Permission denied" Why there are no details in that error logs like in others? You can find out about what goes in the error log here: http://httpd.apache.org/docs/2.2/logs.html#errorlog As it says, the non-standard entries you see are the stderr output of cgi scripts. Errors that use the normal apache error api get the date/client appended, but not the stderr output of cgi scripts. Joshua. - 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] how to set icons aliase in apache
On 5/7/07, makhan <[EMAIL PROTECTED]> wrote: Hi I want apache server to use the JPEG images in the output html file . I think this can be done by setting the icons aliases. Can someone please guide me how I can set the icons aliase to access the directory containing the JPEG image. The AddIcon and related directives are used only for the little icons in automatic directory listings. If you are trying to include an image in an html page and having problems, then the cause is probably faulty html. But without details, there is no way for us to tell. Joshua. - 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] Error: connect() failure
On 5/7/07, makhan <[EMAIL PROTECTED]> wrote: Hi When I use my browser to access the input html page and submit the inputs I get Error: connect() failure. Whereas before restarting the sysstem I was getting the proper output html page. Can someone guide me what coould be wrong. Where do you see that error message? Exactly what does the form look like? Can you give us a public URL so that we see it outselves? Joshua. - 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] Error: connect() failure
Thanks Joshu, I resolved the problem. Actually the service which the script was trying to access wasn't started. Thats why i was getting the connect error. Joshua Slive-2 wrote: > > On 5/7/07, makhan <[EMAIL PROTECTED]> wrote: >> >> Hi >> When I use my browser to access the input html page and submit the inputs >> I >> get Error: connect() failure. Whereas before restarting the sysstem I was >> getting the proper output html page. Can someone guide me what coould be >> wrong. > > Where do you see that error message? Exactly what does the form look > like? Can you give us a public URL so that we see it outselves? > > Joshua. > > - > 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] > > > -- View this message in context: http://www.nabble.com/Error%3A-connect%28%29-failure-tf3706359.html#a10368988 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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]
Re: [EMAIL PROTECTED] how to set icons aliase in apache
Thanks Joshu, its resolved. Actually I had to point the icons alias in the httpd.conf file to the directory where the application is generating the JPEG. Joshua Slive-2 wrote: > > On 5/7/07, makhan <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> I want apache server to use the JPEG images in the output html file . I >> think this can be done by setting the icons aliases. Can someone please >> guide me how I can set the icons aliase to access the directory >> containing >> the JPEG image. > > The AddIcon and related directives are used only for the little icons > in automatic directory listings. > > If you are trying to include an image in an html page and having > problems, then the cause is probably faulty html. But without details, > there is no way for us to tell. > > Joshua. > > - > 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] > > > -- View this message in context: http://www.nabble.com/how-to-set-icons-aliase-in-apache-tf3706358.html#a10369014 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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]
[EMAIL PROTECTED] [warn] (45)Deadlock situation detected/avoided: Failed to acquire SSL session cache lock
Any suggestions on the above warning and it's impact? The cache is a shmcb cache (512000) Thanks, Brian - 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] can't receive the response message from tomcat
Hi All, In my mod jk log file I keep getting the following error. Any help is highly appreciated. ERROR: can't receive the response message from tomcat, network problems or tomcat is down (10.17.61.43:8009), err=-1 Tomcat is down or network problems. No response has been sent to the client (yet) ERROR: Receiving from tomcat failed, recoverable operation. err=0 sending request to tomcat failed in send loop. err=0 Regards, Sree - 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]