Re: [us...@httpd] Two Name-Based Virtual Hosts : Two SSL Certificates?
i had the same issue, i would buy another ssl cert for your 2nd host. you also need another IP for your 2nd host. make sure your dns server are pointing to the right ips depending on the host you need to register two ssl certs make sure you have that SSLChain. thing in your virutal host so Safari browser won't bug out On Sat, Apr 24, 2010 at 8:07 AM, Wang, Mary Y mary.y.w...@boeing.comwrote: Hi, I've two name-based virtual hosts defined (two name web sites on a single IP address). I only requested one SSL certificate for the main site. My application is running on the main site first and goes to the second site when user's click on a specific button. Whenever the URL points to the second site, Firefox detected the server certificate belongs to a different site. Is it a common practice when have two or most name-based virtual hosts running on a single IP on Apache, request a SSL certificate for EACH host name? If so, do I just add the SSLCertificateFile and SSLCertificateKeyFile information in the VirtualHost container for the second site as well? I'm running on Apache 2. Any suggestions? Thanks in advance Mary - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Two Name-Based Virtual Hosts : Two SSL Certificates?
i think people have been saying SNI does not satisfy Safari browser. the ssl warning still pops up. can someone verify? On Sat, Apr 24, 2010 at 3:03 PM, Jason Nunnelley ja...@jasonn.com wrote: On 4/24/10 4:42 PM, Wang, Mary Y wrote: Crypto, Thanks for the info on SNI. I'm currently running on httpd-2.0.46, therefore, SNI support is not there. The browsers support listed on that wiki can't support the browser versions that are offered in the company currently. The application is running on Redhat 3.9. Are you saying that I can request two IPs for the same server? I'd need to contact our admin over here. I am not sure if we can request a wildcard cert either. If I just request another SSL cert for the second site (not doing any of methods that you listed below), does Apache would still use the default SSL cert for the main site? The user would still get that warning? Is that what you are saying? Please advise. Mary, you've got a few options here. 1) Upgrade your server and run SNI even though most sys admins refuse to run it. Not likely going to be your pick. 2) Add an IP number to your server and run multiple IPs, allowing you to set up traditional IP based SSL hosting. You have to do 1 IP per SSL cert if you do this. This is an IP on the server. So, you'll configure the server to take an extra IP and then add the IP to the configuration for the SSL Apache config. 3) Run a unified multi-domain SSL certificate. You'll have to buy a new certificate from someone who sells a unified certificate. It means you can run multiple domains on the same IP, each with different domain names, but hosted on the same IP. Some call this a wildcard SSL cert. But, typical wildcard SSL certs are meant for X.domain.com and not X.com and Y.com. You'll want a cert where you can assign multiple domains to the single cert. Most host providers will sell you an IP for this purpose, if it's an actual physical server. If it's ephemeral (cloud hosting), that's likely not an option. You can not run multiple domain certificates without either IP based SSL configuration or SNI. IP based SSL certificates will apply the first certificate it finds in the configuration. The second is an error, or superfluous. It's actually a broken configuration and you should receive an apachectl configtest error message if you test the configuration. -- Jason A. Nunnelley +1 2562971652 http://www.google.com/profiles/imjasonn [Member Tekany, LLC] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] multiple SSL on one computer - IP
i have a situation where I have only one computer (one IP) with 2 virtual hosts one virtual host is static.foobar.com one virtual host is www.foobar.com both have separate ssl certs registered to the corresponding domain. i tried putting SSL in each but apache is using the first one registered. How can I get this to work without need another computer?
Re: [us...@httpd] multiple SSL on one computer - IP
l i got it working with using multiple address records, having a certain subdomain host point to a different ip then on my server, have 2 ips and using ip based virtual host kinda annoying, feels like a waste of IP does anyone else have a better solution? besides using SNI On Wed, Apr 21, 2010 at 5:25 PM, Crypto Sal crypto@gmail.com wrote: On 04/21/2010 08:11 PM, Tom Evans wrote: On Wed, Apr 21, 2010 at 11:48 PM, Michael Nimichael...@gmail.com wrote: i have a situation where I have only one computer (one IP) with 2 virtual hosts one virtual host is static.foobar.com one virtual host is www.foobar.com both have separate ssl certs registered to the corresponding domain. i tried putting SSL in each but apache is using the first one registered. How can I get this to work without need another computer? You won't need another computer, but you will need another IP address if you wish to support IE. Sorry, its how it works. Cheers Tom Tom, That's misleading information. Windows Vista and greater DO support SNI (Server Name Indication) and since those Operating Systems do support SNI, so does IE. Since most other browser vendors make use of non-MSFT(usually a form of OpenSSL) crypto, they usually are fine and have been fine for years. There is also the possibility of using a Wildcard Certificate as well if the Doman Name structure is similar. --Sal - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] redirect all http to https
virtual host *:80 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R, L] or RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] many ways to do it On Tue, Apr 20, 2010 at 12:55 AM, Frank Bonnet f.bon...@esiee.fr wrote: Hello I want to redirect ALL http requests to a virtual host to the https port using the same URL ( except for the protocol side ) Thanks for any info/links - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] proxypass only https
anyone know how can i do a ProxyPass /foo/http://foo.bar.com but only where protocol is http and not https? so http://www.apache.org/foo/ would proxy to http://foo.bar.com but https://www.apache.org/foo/ would be denied i looked at ProxyPassMatch, but it didn't seem right.
Re: [us...@httpd] proxypass only https
thank you On Fri, Apr 16, 2010 at 7:58 AM, Eric Covener cove...@gmail.com wrote: On Fri, Apr 16, 2010 at 10:56 AM, Michael Ni michael...@gmail.com wrote: anyone know how can i do a ProxyPass /foo/http://foo.bar.com but only where protocol is http and not https? so http://www.apache.org/foo/ would proxy to http://foo.bar.com but https://www.apache.org/foo/ would be denied i looked at ProxyPassMatch, but it didn't seem right. Put your ProxyPass rules in your HTTP-only virtual-host. If you're using a vhost for SSL and the base config for HTTP, create a virtualhost *:80 and use move your ProxyPass into it. -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] virtualhost not picking up for non port 80
I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have searched all over the internet but i can't find the solution. hope someone can help. the following is my config WINDOWS HOSTS FILE 192.168.0.10www.foobar.com HTTPD.CONF --- Listen 8886 HTTPD-VHOSTS.CONF NameVirtualHost 192.168.0.10:8886 VirtualHost 192.168.0.10:8886 Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all /Directory ServerName www.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost
Re: [us...@httpd] virtualhost not picking up for non port 80
i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch) i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have searched all over the internet but i can't find the solution. hope someone can help. the following is my config WINDOWS HOSTS FILE 192.168.0.10www.foobar.com HTTPD.CONF --- Listen 8886 HTTPD-VHOSTS.CONF NameVirtualHost 192.168.0.10:8886 VirtualHost 192.168.0.10:8886 Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all /Directory ServerName www.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost Hi Michael, 1) it would be interesting what you see in the log file 2) as soon apache is started it would be interesting if its really listening or actually something else is listening on that port you can check this with a simple telnet connect to your ip and port and see if you get a connection working - where ever it would go greetings aaron
Re: [us...@httpd] virtualhost not picking up for non port 80
yes i have Listen 8886 in the httpd.conf file i tried changing the private ip to localhost, it doesn't work as well On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.comwrote: Michael, Make sure you have a corresponding Listen directive before your vhost as well for that port. Frank. On 04/12/2010 10:20 AM, Michael Ni wrote: i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 http://192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have searched all over the internet but i can't find the solution. hope someone can help. the following is my config WINDOWS HOSTS FILE 192.168.0.10 www.foobar.com http://www.foobar.com HTTPD.CONF --- Listen 8886 HTTPD-VHOSTS.CONF NameVirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 VirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all /Directory ServerName www.foobar.com http://www.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost Hi Michael, 1) it would be interesting what you see in the log file 2) as soon apache is started it would be interesting if its really listening or actually something else is listening on that port you can check this with a simple telnet connect to your ip and port and see if you get a connection working - where ever it would go greetings aaron - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] virtualhost not picking up for non port 80
tried it, still doesn't work, i dont think it needs to be that specific right? Listen 192.168.0.10 should work. On Mon, Apr 12, 2010 at 8:07 AM, alin vasile alinachegal...@yahoo.comwrote: in httpd.conf it shouldn't be Listen 192.168.0.10 http://192.168.0.10:8886/:8886? -- *From:* Michael Ni michael...@gmail.com *To:* users@httpd.apache.org *Sent:* Mon, April 12, 2010 5:39:42 PM *Subject:* Re: [us...@httpd] virtualhost not picking up for non port 80 yes i have Listen 8886 in the httpd.conf file i tried changing the private ip to localhost, it doesn't work as well On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.com wrote: Michael, Make sure you have a corresponding Listen directive before your vhost as well for that port. Frank. On 04/12/2010 10:20 AM, Michael Ni wrote: i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 http://192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have searched all over the internet but i can't find the solution. hope someone can help. the following is my config WINDOWS HOSTS FILE 192.168.0.10 www.foobar.com http://www.foobar.com HTTPD.CONF --- Listen 8886 HTTPD-VHOSTS.CONF NameVirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 VirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all /Directory ServerName www.foobar.com http://www.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost Hi Michael, 1) it would be interesting what you see in the log file 2) as soon apache is started it would be interesting if its really listening or actually something else is listening on that port you can check this with a simple telnet connect to your ip and port and see if you get a connection working - where ever it would go greetings aaron - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] virtualhost not picking up for non port 80
yes my virtual host tag has 192.168.0.10:8886 and the listen directive was Listen 8886 i have NameVirtualHost 192.168.0.10:80 as well for some reason its not detecting, there is some logic somewhere saying, if port is not 80 and main configuration is listening for port, redirect to that port, if main configuration is not listening for port, do nothing On Mon, Apr 12, 2010 at 2:56 PM, Jason Nunnelley ja...@jasonn.com wrote: The conf VirtualHost must include the hostname and the port. You could just add * to indicate it should listen to all ports. I'm not sure what teh 8886 port has to do with your problem - not sure it has antyhing to do with it. You need a Listen *:80 or 192.168.1.1:80 for it to listen on port 80. On 4/12/10 4:51 PM, Michael Ni wrote: tried it, still doesn't work, i dont think it needs to be that specific right? Listen 192.168.0.10 should work. On Mon, Apr 12, 2010 at 8:07 AM, alin vasile alinachegal...@yahoo.comwrote: in httpd.conf it shouldn't be Listen 192.168.0.10 http://192.168.0.10:8886/:8886? -- *From:* Michael Ni michael...@gmail.com *To:* users@httpd.apache.org *Sent:* Mon, April 12, 2010 5:39:42 PM *Subject:* Re: [us...@httpd] virtualhost not picking up for non port 80 yes i have Listen 8886 in the httpd.conf file i tried changing the private ip to localhost, it doesn't work as well On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.com wrote: Michael, Make sure you have a corresponding Listen directive before your vhost as well for that port. Frank. On 04/12/2010 10:20 AM, Michael Ni wrote: i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 http://192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have searched all over the internet but i can't find the solution. hope someone can help. the following is my config WINDOWS HOSTS FILE 192.168.0.10 www.foobar.com http://www.foobar.com HTTPD.CONF --- Listen 8886 HTTPD-VHOSTS.CONF NameVirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 VirtualHost 192.168.0.10:8886 http://192.168.0.10:8886 Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options Indexes FollowSymLinks AllowOverride none Order allow,deny Allow from all /Directory ServerName www.foobar.com http://www.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost Hi Michael, 1) it would be interesting what you see in the log file 2) as soon apache is started it would be interesting if its really listening or actually something else is listening on that port you can check this with a simple telnet connect to your ip and port and see if you get a connection working - where ever it would go greetings aaron - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org -- Jason A. Nunnelley +1 2562971652 http://www.google.com/profiles/imjasonn [Member Tekany, LLC]
Re: [us...@httpd] virtualhost not picking up for non port 80
i checked the ports, when apache is down, its clear i changed the virtual host to localhost:8886 and telnet localhost 8886 is successful i turned off my antivirus, although it shouldn't affect localhost On Mon, Apr 12, 2010 at 3:33 PM, Frank Gingras francois.ging...@gmail.comwrote: Michael, Start apache, check netstat -plant for the process, then try to telnet to the port on localhost. If that fails, it's probably a firewall issue. Frank. On 04/12/2010 06:01 PM, Michael Ni wrote: yes my virtual host tag has 192.168.0.10:8886 http://192.168.0.10:8886 and the listen directive was Listen 8886 i have NameVirtualHost 192.168.0.10:80 http://192.168.0.10:80 as well for some reason its not detecting, there is some logic somewhere saying, if port is not 80 and main configuration is listening for port, redirect to that port, if main configuration is not listening for port, do nothing On Mon, Apr 12, 2010 at 2:56 PM, Jason Nunnelley ja...@jasonn.com mailto:ja...@jasonn.com wrote: The conf VirtualHost must include the hostname and the port. You could just add * to indicate it should listen to all ports. I'm not sure what teh 8886 port has to do with your problem - not sure it has antyhing to do with it. You need a Listen *:80 or 192.168.1.1:80 http://192.168.1.1:80 for it to listen on port 80. On 4/12/10 4:51 PM, Michael Ni wrote: tried it, still doesn't work, i dont think it needs to be that specific right? Listen 192.168.0.10 should work. On Mon, Apr 12, 2010 at 8:07 AM, alin vasile alinachegal...@yahoo.com mailto:alinachegal...@yahoo.com wrote: in httpd.conf it shouldn't be Listen 192.168.0.10 http://192.168.0.10:8886/:8886? *From:* Michael Ni michael...@gmail.com mailto:michael...@gmail.com *To:* users@httpd.apache.org mailto:users@httpd.apache.org *Sent:* Mon, April 12, 2010 5:39:42 PM *Subject:* Re: [us...@httpd] virtualhost not picking up for non port 80 yes i have Listen 8886 in the httpd.conf file i tried changing the private ip to localhost, it doesn't work as well On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.com mailto:francois.ging...@gmail.com wrote: Michael, Make sure you have a corresponding Listen directive before your vhost as well for that port. Frank. On 04/12/2010 10:20 AM, Michael Ni wrote: i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 http://192.168.0.10:8886 http://192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com http://www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com http://www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now with 8886. when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically if i turn off the all other listen and only keep listen 8886, i will just be unable to connect i have
Re: [us...@httpd] virtualhost not picking up for non port 80
ok i found what was wrong, so i checked out my code from SVN into htdocs folder out of convenience. that was why the directory allow from all was failing and it was using the main servername instead. so the moral of this story is, do not use svn on the files/folders of your documentroot i lost 2 days of my life On Mon, Apr 12, 2010 at 3:59 PM, Michael Ni michael...@gmail.com wrote: i checked the ports, when apache is down, its clear i changed the virtual host to localhost:8886 and telnet localhost 8886 is successful i turned off my antivirus, although it shouldn't affect localhost On Mon, Apr 12, 2010 at 3:33 PM, Frank Gingras francois.ging...@gmail.com wrote: Michael, Start apache, check netstat -plant for the process, then try to telnet to the port on localhost. If that fails, it's probably a firewall issue. Frank. On 04/12/2010 06:01 PM, Michael Ni wrote: yes my virtual host tag has 192.168.0.10:8886 http://192.168.0.10:8886 and the listen directive was Listen 8886 i have NameVirtualHost 192.168.0.10:80 http://192.168.0.10:80 as well for some reason its not detecting, there is some logic somewhere saying, if port is not 80 and main configuration is listening for port, redirect to that port, if main configuration is not listening for port, do nothing On Mon, Apr 12, 2010 at 2:56 PM, Jason Nunnelley ja...@jasonn.com mailto:ja...@jasonn.com wrote: The conf VirtualHost must include the hostname and the port. You could just add * to indicate it should listen to all ports. I'm not sure what teh 8886 port has to do with your problem - not sure it has antyhing to do with it. You need a Listen *:80 or 192.168.1.1:80 http://192.168.1.1:80 for it to listen on port 80. On 4/12/10 4:51 PM, Michael Ni wrote: tried it, still doesn't work, i dont think it needs to be that specific right? Listen 192.168.0.10 should work. On Mon, Apr 12, 2010 at 8:07 AM, alin vasile alinachegal...@yahoo.com mailto:alinachegal...@yahoo.com wrote: in httpd.conf it shouldn't be Listen 192.168.0.10 http://192.168.0.10:8886/:8886? *From:* Michael Ni michael...@gmail.com mailto:michael...@gmail.com *To:* users@httpd.apache.org mailto:users@httpd.apache.org *Sent:* Mon, April 12, 2010 5:39:42 PM *Subject:* Re: [us...@httpd] virtualhost not picking up for non port 80 yes i have Listen 8886 in the httpd.conf file i tried changing the private ip to localhost, it doesn't work as well On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras francois.ging...@gmail.com mailto:francois.ging...@gmail.com wrote: Michael, Make sure you have a corresponding Listen directive before your vhost as well for that port. Frank. On 04/12/2010 10:20 AM, Michael Ni wrote: i added log in virtual host ErrorLog logs/asdf-error.log CustomLog logs/asdf-access.log common when i tried again, nothing shows up on both i also did a httpd -S and got the following C:\Program Files\Apache Software Foundation\Apache2.2\binhttpd -S VirtualHost configuration: 192.168.0.10:8886 http://192.168.0.10:8886 http://192.168.0.10:8886 is a NameVirtualHost default server www.foobar.com http://www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Foundat ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) port 8886 namevhost www.foobar.com http://www.foobar.com http://www.foobar.com (C:/Program Files/Apache Software Fo undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) Syntax OK but it just won't pick up for some reason On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch) i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch mailto:i...@pack3.ch wrote: Am 12.04.2010 16:00, schrieb Michael Ni: I'm having difficulty on windows XP getting a virtualhost to work with non port 80. it works when i use port 80 in the virtualhost but doesn't work with other ports. i have turned off my firewall, although this is private ip, shouldn't matter i have tried ports 8080, , 8000, and now
Re: [us...@httpd] Can I have two virtual hosts with same servername?
Thanks guys it worked using two unique servernames, blog.foobar.com and www.foobar.com ProxyPass /blog/ http://blog.foobar.com:80/ VirtualHost *:80 ServerName blog.foobar.com DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost VirtualHost *:80 ServerName www.foobar.com Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass/ ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost however if i try to use the same servername with different ports (shown below), i get error client denied by server configuration c:/apache NameVirtualHost 97.93.122.1: ProxyPass /blog/ http://www.foobar.com:/ VirtualHost 97.93.122.1: ServerName www.foobar.com Directory C:/Program Files/Apache Software Foundation/Apache2.2/htdocs Options FollowSymLinks AllowOverride None Order deny,allow Allow from all /Directory DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost VirtualHost 97.93.122.1:80 ServerName www.foobar.com Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass/ ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost On Fri, Apr 9, 2010 at 10:31 AM, Nilesh Govindarajan li...@itech7.comwrote: On 04/09/10 15:22, Michael Ni wrote: we actually are doing http://www.foobar.com/blog instead of http://blog.foobar.com for SEO reasons. we hope linking to the blog will boost up the the main site. i have NameVirtualHost *:80 but do i really need server alias? On Fri, Apr 9, 2010 at 2:48 AM, Nilesh Govindarajan li...@itech7.com mailto:li...@itech7.com wrote: On 04/09/10 15:14, Michael Ni wrote: I have a java project that resides in tomcat. Recently we needed to add Wordpress (php project). We decided to go with Apache Server in front with virtual hosts with mod_proxy_ajp. So far I have gotten different server names to work http://www.foobar.com http://www.foobar.com/ http://blog.foobar.com http://blog.foobar.com/ VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com http://www.foobar.com/ Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName blog.foobar.com http://blog.foobar.com http://blog.foobar.com/ ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/ error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost HOWEVER, we want to do the following instead http://www.foobar.com http://www.foobar.com/ http://www.foobar.com/blog why does the following NOT work? VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com http://www.foobar.com/ Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com http://www.foobar.com/ ServerPath /blog ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost First of all, you need a NameVirtualHost *:80 Then you should use ServerAlias to add www to the vhost. As a SEO point of view, you should redirect www to non-www or vice-versa. -- Nilesh Govindarajan Site Server Administrator www.itech7.com http://www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org mailto:users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org mailto:users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org mailto:users-h...@httpd.apache.org If you want /blog and not blog.foobar.com then it should work, I see that you haven't added the DocumentRoot. Once you add a DocumentRoot, use LocationMatch directive to forward requests to servlets and jsps to tomcat, else
[us...@httpd] Can I have two virtual hosts with same servername?
I have a java project that resides in tomcat. Recently we needed to add Wordpress (php project). We decided to go with Apache Server in front with virtual hosts with mod_proxy_ajp. So far I have gotten different server names to work http://www.foobar.com http://blog.foobar.com VirtualHost *:80 ServerName www.foobar.com Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName blog.foobar.com ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/ error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost HOWEVER, we want to do the following instead http://www.foobar.com http://www.foobar.com/blog why does the following NOT work? VirtualHost *:80 ServerName www.foobar.com Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName www.foobar.com ServerPath /blog ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost
Re: [us...@httpd] Can I have two virtual hosts with same servername?
we actually are doing http://www.foobar.com/blog instead of http://blog.foobar.com for SEO reasons. we hope linking to the blog will boost up the the main site. i have NameVirtualHost *:80 but do i really need server alias? On Fri, Apr 9, 2010 at 2:48 AM, Nilesh Govindarajan li...@itech7.comwrote: On 04/09/10 15:14, Michael Ni wrote: I have a java project that resides in tomcat. Recently we needed to add Wordpress (php project). We decided to go with Apache Server in front with virtual hosts with mod_proxy_ajp. So far I have gotten different server names to work http://www.foobar.com http://www.foobar.com/ http://blog.foobar.com http://blog.foobar.com/ VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com/ Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName blog.foobar.com http://blog.foobar.com/ ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/ error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost HOWEVER, we want to do the following instead http://www.foobar.com http://www.foobar.com/ http://www.foobar.com/blog why does the following NOT work? VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com/ Proxy * AddDefaultCharset Off Order deny,allow Allow from all /Proxy ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ /VirtualHost VirtualHost *:80 ServerName www.foobar.com http://www.foobar.com/ ServerPath /blog ErrorLog C:/Program Files/Apache Software Foundation/Apache2.2/logs/error.log DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs /VirtualHost First of all, you need a NameVirtualHost *:80 Then you should use ServerAlias to add www to the vhost. As a SEO point of view, you should redirect www to non-www or vice-versa. -- Nilesh Govindarajan Site Server Administrator www.itech7.com मेरा भारत महान ! मम भारत: महत्तम भवतु ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org