Re: [users@httpd] Virtual hosts, include php.conf, DirectoryIndex failure

2017-04-20 Thread Luca Toscano
Hi Marc, +1 to what Rick is saying, if you could avoid mod_php it would be really better (more info https://wiki.apache.org/httpd/php). > But when I included the php7.file in the global http.conf or in the global default-server.conf files then it works! Sorry for the extra question but are you s

RE: [users@httpd] Virtual hosts, include php.conf, DirectoryIndex failure

2017-04-20 Thread Houser, Rick
I suggest you remove the php stuff from Apache, switch it over to php-fpm (which basically turns it into an appserver). If you do so, consider changing your MPM over to either event or worker at that point. Rick Houser Web Administration > -Original Message- > From: Marc Chamberlin [

Re: [users@httpd] Virtual Hosts not working

2014-05-20 Thread Mackey, Harold A.
tpd.apache.org>" mailto:users@httpd.apache.org>> Date: Monday, May 19, 2014 at 11:51 PM To: "users@httpd.apache.org<mailto:users@httpd.apache.org>" mailto:users@httpd.apache.org>> Subject: Re: [users@httpd] Virtual Hosts not working Check ypur ports.conf for th

Re: [users@httpd] Virtual Hosts not working

2014-05-19 Thread Curtis Maurand
Check ypur ports.conf for the NameVirtualHost directive. On May 19, 2014 9:39:39 PM EDT, Peter Biggerstaff wrote: >Hi All, > >I am tearing my hair out trying to get virtual hosts to work, but >apache >seems to be ignoring the /etc/apache2/sites-enabled config files. > >I have been trying all mo

Re: [users@httpd] Virtual Hosts not working

2014-05-19 Thread Greg Rundlett (freephile)
Actually, you could have named it ANYTHING.conf Apache is only "seeing" files that end in .conf as per your include directive: IncludeOptional sites-enabled/*.conf So, if you want to disable a site config called example.conf, you can do so by renaming it example.conf.disabled and reloading Apach

Re: [users@httpd] Virtual Hosts not working

2014-05-19 Thread Peter Biggerstaff
Every time you spend a whole morning on something, then give up and mail someone, you find the solution right after! Had to rename the file to 000-default.conf which was missing! On 2014-05-20 13:39, Peter Biggerstaff wrote: Hi All, I am tearing my hair out trying to get virtual hosts to work

Re: [users@httpd] virtual hosts questions

2013-10-23 Thread Paolo De Michele
I can not help anyone? thanks in advance On 10/23/2013 10:11 AM, Paolo De Michele wrote: hi everybody, I have several difficulties to configure virtual hosts on my server with a public static IP my virtualhost have been populated as well (not by me): 1.conf DocumentRoot /opt/observium/h

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-23 Thread Matthew Bachmann
Use debug mode in your browser to verify that all of the contents of the page are actually coming from that server. I had a problem where javascript was importing some public library, and it was fetching it via plain http, so I got the grey globe for the whole page. On Wed, Oct 23, 2013 at 11:00

RE: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-23 Thread Tushar Chavan
> Date: Tue, 22 Oct 2013 08:26:57 -0400 > From: d...@bellsouth.net > To: users@httpd.apache.org > Subject: [users@httpd] Virtual Hosts and SSL Puzzler > > I have 3 virtual hosts that for all I can see are configured identically > other the the obviously needed differences. The same is true of t

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Chris Gordon
Thank you for the enlightenment Yehuda! I must not be meeting one of the SNI prerequisites (maybe LD_LIBRARY_PATH, maybe TLS Extensions) because I get a warning message on startup about using * and Name Based Hosting with SSL. I have a secure workaround so as long as it works and security is

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Dennis Putnam
On 10/22/2013 10:03 AM, Yehuda Katz wrote: > If the sites you are referencing allow you to access them over https, > that will solve the problem. > My prefered solution is to omit the http: altogether. If a url just > starts with "//example.com/rest/of/url > ", the b

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Yehuda Katz
On Tue, Oct 22, 2013 at 10:08 AM, Chris Gordon wrote: > To answer your questions: > *"Doesn't the SSLCertificate parameter for each VH say which cert to use*? > > > Yes, but how does Apache know which VH to get the cert from until it has > used a cert to decrypt the SSL? It just used the first

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Chris Gordon
I think the previous poster, I shift deleted the mail but I think it is a prominent poster here 'Pete Houston' who had a very good point. It could just be that you have mixed content. You can use a development mode of a browser to find any links to http content, that will certainly break the p

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Yehuda Katz
If the sites you are referencing allow you to access them over https, that will solve the problem. My prefered solution is to omit the http: altogether. If a url just starts with "//example.com/rest/of/url", the browser will use the appropriate protocol automatically. - Y On Tue, Oct 22, 2013 at

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Dennis Putnam
On 10/22/2013 9:44 AM, Yehuda Katz wrote: > On Tue, Oct 22, 2013 at 9:39 AM, Dennis Putnam > wrote: > > Thanks. That might make more sense (at least to me). After more > reading, > I am not sure that I don't have SNI capable version of httpd already > ins

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Yehuda Katz
On Tue, Oct 22, 2013 at 9:39 AM, Dennis Putnam wrote: > Thanks. That might make more sense (at least to me). After more reading, > I am not sure that I don't have SNI capable version of httpd already > installed (how do I tell?). The pages that work are very simple but the > one that doesn't is

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Dennis Putnam
On 10/22/2013 9:12 AM, Pete Houston wrote: > On Tue, Oct 22, 2013 at 08:26:57AM -0400, Dennis Putnam wrote: >> I get a gray globe indicating >> partial encryption which does not prevent eavesdropping. I have no clue >> how to debug this or even where to look. Can someone point me in the >> right di

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Yehuda Katz
On Tue, Oct 22, 2013 at 9:10 AM, Chris Gordon wrote: > SSL wraps http and you need a cert to decrypt the data sent via SSL. If > you have 3 virtual hosts and you are using Name Based Virtual Hosting how > does the Apache web server know which cert to use to decrypt and read the > header so it c

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Dennis Putnam
On 10/22/2013 9:10 AM, Chris Gordon wrote: > Sorry, brevity is not my strong point. > > Because I do not know what your certs look like as far as what > domain(s) are considered CNs I'm going to guess it has something to do > with the following... > > SSL wraps http and you need a cert to decr

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Pete Houston
On Tue, Oct 22, 2013 at 08:26:57AM -0400, Dennis Putnam wrote: > I get a gray globe indicating > partial encryption which does not prevent eavesdropping. I have no clue > how to debug this or even where to look. Can someone point me in the > right direction? Thanks. This is usually indicative of a

Re: [users@httpd] Virtual Hosts and SSL Puzzler

2013-10-22 Thread Chris Gordon
Sorry, brevity is not my strong point. Because I do not know what your certs look like as far as what domain(s) are considered CNs I'm going to guess it has something to do with the following... SSL wraps http and you need a cert to decrypt the data sent via SSL. If you have 3 virtual host

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-06 Thread John McIntyre
> NameVirtualHost *:80 ##$ fine > > ##$ << you need *:80 here ! All right! It seems to be working, and I am confused, since I could have sworn that that was my configuration. Anyway, many thanks! J.

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-05 Thread Stefan Pielmeier
Ok, I had similar problems. When seeing your original config, it triggers following comments (after ##$) from me: NameVirtualHost *:80 ##$ fine ##$ << you need *:80 here ! ServerAdmin r...@domain1.com DocumentRoot /var/www/html ServerName domain1.com ErrorLog /var/log/http

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-05 Thread Eric Covener
On Sat, Oct 5, 2013 at 3:22 PM, John McIntyre wrote: > > Okay, if you're not doing ssl on domain2 then, no, that's not related. I > thought maybe from the post title that you were asking about virtual hosts > for ssl and that gets complicated depending on exactly what you're trying to > do. > > >

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-05 Thread John McIntyre
> Okay, if you're not doing ssl on domain2 then, no, that's not related. I > thought maybe from the post title that you were asking about virtual hosts > for ssl and that gets complicated depending on exactly what you're trying to > do. Guys, coming back at you with this, as I still can't get

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-02 Thread Eric Covener
On Wed, Oct 2, 2013 at 1:35 AM, John McIntyre wrote: > Le 1 octobre 2013 à 22:25, Eric Covener a écrit : > > Don't use domains or IP addresses inside or > NameVirtualHost. It's causing two sets of name-based vhosts. Use > *:80. > > > Hi, > When I did that, and restarted the server and then wen

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread John McIntyre
Le 1 octobre 2013 à 22:25, Eric Covener a écrit : > Don't use domains or IP addresses inside or > NameVirtualHost. It's causing two sets of name-based vhosts. Use > *:80. Hi, When I did that, and restarted the server and then went to my URL, I got a warning about the certificate not being ap

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread Eric Covener
Don't use domains or IP addresses inside or NameVirtualHost. It's causing two sets of name-based vhosts. Use *:80. On Tue, Oct 1, 2013 at 4:06 PM, John McIntyre wrote: > So I'm still unable to serve that domain2.com :( > > > > > Le 1 octobre 2013 à 18:04, Nick Tkach a écrit : > > Okay, if yo

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread John McIntyre
So I'm still unable to serve that domain2.com :( Le 1 octobre 2013 à 18:04, Nick Tkach a écrit : > Okay, if you're not doing ssl on domain2 then, no, that's not related. I > thought maybe from the post title that you were asking about virtual hosts > for ssl and that gets complicated depen

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread Nick Tkach
Okay, if you're not doing ssl on domain2 then, no, that's not related. I thought maybe from the post title that you were asking about virtual hosts for ssl and that gets complicated depending on exactly what you're trying to do. On Tue, Oct 1, 2013 at 11:57 AM, John McIntyre wrote: > Hi, > Tha

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread John McIntyre
Hi, Thanks for that. Unfortunately, even after the changes, entering domain2.com on a browser still goes directly to domain1.com. No, I don't have any intention to do SSL on domain2.com. Is this causing a problem? D. Le 1 octobre 2013 à 17:29, Nick Tkach a écrit : > Well, question is, are

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread Nick Tkach
Well, question is, are you trying to have domain2.com *also* do that same http->https ( http://domain2.com to https://domain2.com )? If so, do you have separate certificates for each (domain1 and domain2)? On Tue, Oct 1, 2013 at 10:36 AM, Pete Houston wrote: > On Tue, Oct 01, 2013 at 04:25:05P

Re: [users@httpd] Virtual Hosts Possible for SSL ?

2013-10-01 Thread Pete Houston
On Tue, Oct 01, 2013 at 04:25:05PM +0100, John McIntyre wrote: > Am I doomed to failiure, or is what I'm trying to do, actually possible? No, you are almost there. The problem is that for some reason you have an asterisk in your VirtualHost declaration for domain2. Change that the the actual IP ad

Re: [users@httpd] Virtual Hosts and SSL Config: Hoist Common Directives Above Server Blocks?

2012-09-12 Thread Igor Cicimov
On Sep 9, 2012 10:58 PM, "Tom Browder" wrote: > > I'm trying to clean up my conf files after getting an all-SSL server > with several virtual hosts working. > > At the moment, for each server block, I have this: > > > > SSLEngine on > > SSLCACertificateFile/path/to/ca.pem > SSLCertific

Re: [users@httpd] Virtual Hosts and SSL Config: Hoist Common Directives Above Server Blocks? [SOLVED]

2012-09-11 Thread Tom Browder
On Mon, Sep 10, 2012 at 10:00 PM, Igor Cicimov wrote: > On Sun, Sep 9, 2012 at 10:57 PM, Tom Browder wrote: >> >> I'm trying to clean up my conf files after getting an all-SSL server >> with several virtual hosts working. ... >> Can I hoist the common SSL cert. stuff out of the server blocks to a

Re: [users@httpd] Virtual Hosts and SSL Config: Hoist Common Directives Above Server Blocks?

2012-09-10 Thread Igor Cicimov
On Sun, Sep 9, 2012 at 10:57 PM, Tom Browder wrote: > I'm trying to clean up my conf files after getting an all-SSL server > with several virtual hosts working. > > At the moment, for each server block, I have this: > > > > SSLEngine on > > SSLCACertificateFile/path/to/ca.pem > SSLCer

Re: [users@httpd] virtual hosts with different JkExtract ssl values

2012-05-30 Thread Charles Richard
Thanks for the help! As silly as this sounds, I thought i had tried the scenario I had above and that it hadn't worked but after I read the documentation you sent, it didn't explicitly specify that JkExtract could not be used in a virtual host so I tried it and it worked! Thanks, Charles On Tue,

Re: [users@httpd] virtual hosts with different JkExtract ssl values

2012-05-29 Thread Igor Cicimov
JkExtractSSL is On by default. You can read the JkExtractSSL definition in the connector documentation: http://tomcat.apache.org/connectors-doc/reference/printer/apache.html Looks like you can play with Apache SSLOptions parameter: "In order to make SSL data available for mod_jk in Apache, you n

Re: [users@httpd] Virtual hosts

2011-11-30 Thread Martin Barry
$quoted_author = "Stormy" ; > > I just rem'd out all the "NameVirtualHost 192.168.0.90:80" and now > the warning has changed to: > > paul@nelson:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart > * Restarting web server apache2 > [Wed Nov 30 15:02:51 2011] [warn] VirtualHost 192.168

Re: [users@httpd] Virtual hosts

2011-11-30 Thread Stormy
At 02:36 PM 11/30/2011 -0500, Mark Montague wrote: On November 30, 2011 14:16 , Stormy wrote: Just finished setting up a new server (Ubuntu 11.10) and copied/pasted all conf files for Apache2 from an older fully functional server (Ubuntu 10.04). All the virtual hosts are functioning, but on ap

Re: [users@httpd] Virtual hosts

2011-11-30 Thread Mark Montague
On November 30, 2011 14:16 , Stormy wrote: Just finished setting up a new server (Ubuntu 11.10) and copied/pasted all conf files for Apache2 from an older fully functional server (Ubuntu 10.04). All the virtual hosts are functioning, but on apache2 restart I get the following warning (the old

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-19 Thread Patrick Proniewski
On 19 juil. 2011, at 07:36, Patrick Proniewski wrote: >> Patrick, Do you know of any examples on how to configure this? > > I'm going to take a look at my old config files, I've done that years ago, > may be I've still some valuable pointers. I was not able to find my old config files (10 year

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Patrick Proniewski
gt;> Date: Mon, 18 Jul 2011 23:16:36 +0200 >> To: users@httpd.apache.org; jc_denton_1...@hotmail.com >> Subject: Re: [users@httpd] Virtual Hosts on physical servers >> >> Your proxy can be an Apache Server, with mod_proxy, setup to forward client >> requests for w

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Patrick Proniewski
account too. >> From: patrick.proniew...@univ-lyon2.fr >> Date: Mon, 18 Jul 2011 23:16:36 +0200 >> To: users@httpd.apache.org; jc_denton_1...@hotmail.com >> Subject: Re: [users@httpd] Virtual Hosts on physical servers >> >> Your proxy can be an Apache Server, wit

RE: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Peter B
Patrick, Do you know of any examples on how to configure this? > From: patrick.proniew...@univ-lyon2.fr > Date: Mon, 18 Jul 2011 23:16:36 +0200 > To: users@httpd.apache.org; jc_denton_1...@hotmail.com > Subject: Re: [users@httpd] Virtual Hosts on physical servers > > Hi, >

RE: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Peter B
: Mon, 18 Jul 2011 23:16:36 +0200 > To: users@httpd.apache.org; jc_denton_1...@hotmail.com > Subject: Re: [users@httpd] Virtual Hosts on physical servers > > Hi, > > On 18 juil. 2011, at 21:20, Peter B wrote: > > > I have a single IP address, with multiple web server

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Patrick Proniewski
Hi, On 18 juil. 2011, at 21:20, Peter B wrote: > I have a single IP address, with multiple web servers, so I somehow need > www.hello.com to go to server1 and www.test.com to go to server2. As long as you have only one public IP address, you'll have to put a device (sofware or hardware) betwe

RE: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Peter B
Thanks Dave, I'll check this out. > Date: Mon, 18 Jul 2011 13:20:59 -0700 > From: g...@uniserve.com > To: users@httpd.apache.org; p...@openstrike.co.uk > Subject: Re: [users@httpd] Virtual Hosts on physical servers > > Quoting Pete Houston : > > > Content-Ty

RE: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Peter B
Hi Pete, I checked out that page, but that only covers virtual hosts on the same server, not other servers. > Date: Mon, 18 Jul 2011 20:35:52 +0100 > From: p...@openstrike.co.uk > To: users@httpd.apache.org > Subject: Re: [users@httpd] Virtual Hosts on physical servers > &

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Dave Stevens
Quoting Pete Houston : Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, It sounds like you want name-based virtual hosts. See http://httpd.apache.org/docs/2.2/vhosts/name-based.html Peter For several years now I've bee

Re: [users@httpd] Virtual Hosts on physical servers

2011-07-18 Thread Pete Houston
Hello, It sounds like you want name-based virtual hosts. See http://httpd.apache.org/docs/2.2/vhosts/name-based.html Pete On Tue, Jul 19, 2011 at 07:20:15AM +1200, Peter B wrote: > > I have a single IP address, with multiple web servers, so I somehow need > www.hello.com to go to server1 and w