Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EBF2F200CA3 for ; Thu, 1 Jun 2017 20:21:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D61AE160BC4; Thu, 1 Jun 2017 18:21:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2AA6160BC1 for ; Thu, 1 Jun 2017 20:21:08 +0200 (CEST) Received: (qmail 79757 invoked by uid 500); 1 Jun 2017 18:21:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 79747 invoked by uid 99); 1 Jun 2017 18:21:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2017 18:21:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F35D0182590 for ; Thu, 1 Jun 2017 18:21:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.68 X-Spam-Level: X-Spam-Status: No, score=0.68 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id lpN9h6OwqdYr for ; Thu, 1 Jun 2017 18:21:03 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4111C5F3FE for ; Thu, 1 Jun 2017 18:21:02 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id w10so64434275oif.0 for ; Thu, 01 Jun 2017 11:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=7cGwRPvmopwvoHkc4TXrMuptNobu6z0dzSZAwpFqmSg=; b=DDEu7RzwCmfXogggL7Dupc7MDreZzV+U+JARrZxjiYucRTMFn4VCAayxoKoS9/2LMz nLfiuZe3SBZbyV9u/pPYgR22MK3PMmFbYqjGxK6J6NZJr76KrVNLALK62bFsjQ03fc3P IM1CEyHCRfSiCn3Tw2SWYop2VFyHHK+8/IX18rtV7AqqBMWFgpGUbalua58EIQHRdnpW kBiS83leH1FOybx0lAKF0zeblFF55yp8Rn6joEdPW2H3Dv7gESFfYqn6orIEV7NRIGC0 ndsuPAq1MKwizZzcmkG1G/COunZOlGwzA1wBYTVDUm9mqzfIKuvP3TuAuEf3sLhGo7cu MOtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=7cGwRPvmopwvoHkc4TXrMuptNobu6z0dzSZAwpFqmSg=; b=thSRabtf9vWHCrLsa9DFKGrh7Sr1v8M9ys39gSBkHAoQyuX1IiBeBxIrKb+ZLO18yr GWqZ24VJMqGEF1wDU+MtlbR5wwKp47VCSMmnwdSoReyBHFUNJwXOwlRKQ23x2rv8/yeA UR2F0ankrqWF4OOE47d2jjmrdmGtDlEkvad+2C/x1c45axGO79k7PXzwB2ZsKuYdSKVp VK2DXjf0zpzM3jFpBEi+rWnt59HEDZT0OacWpkSYlYCPu+XIvix3VbEXXIkhPNegHZ1v 8IJknDtvXiNq0yvz7hEToMF8Sj3rCY3WT90n1k03CddZz+W3MYfmthNObEyvMM/gxl4i MTew== X-Gm-Message-State: AODbwcCIXwRG7D15Ny9eqRKNlqP8NtD/+2DylxTqY32Fr7vihCLqBvLf zXEMIVpfnZybPm3rbdi2aTMZAr0BEA== X-Received: by 10.157.43.43 with SMTP id o40mr1952743otb.150.1496341260728; Thu, 01 Jun 2017 11:21:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.45.132 with HTTP; Thu, 1 Jun 2017 11:20:40 -0700 (PDT) In-Reply-To: References: From: Daniel Date: Thu, 1 Jun 2017 20:20:40 +0200 Message-ID: To: "" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [users@httpd] What is configuration archived-at: Thu, 01 Jun 2017 18:21:10 -0000 Servername is to specify the host header, defining different names but calling http://10.1.1.76 won't help apache determine to which virtualhost the request has to go, following the names you used, you need to request http://cups/ or http://jasmine/ to make Apache httpd recognize where requests will go, otherwise all requests will land in the first virtualhost. 2017-06-01 20:14 GMT+02:00 Luiz Guilherme Nunes Fernandes : > Well, i chek in log. > > When I try to access the first virtualhost it works normally. > > 10.251.14.140 - - [01/Jun/2017:15:01:35 -0300] "GET / HTTP/1.1" 304 - > "http://10.1.1.76/admin" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) > Gecko/20100101 Firefox/45.0" > 10.251.14.140 - - [01/Jun/2017:15:01:35 -0300] "GET /cups.css HTTP/1.1" 3= 04 > - "http://10.1.1.76/" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) > Gecko/20100101 Firefox/45.0" > > Second virtualhost: > > 10.251.14.140 - - [01/Jun/2017:15:01:58 -0300] "GET /jasmine/ HTTP/1.1" 4= 04 > 342 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 > Firefox/45.0" > 10.251.14.140 - - [01/Jun/2017:15:01:58 -0300] "GET /cups.css HTTP/1.1" 3= 04 > - "http://10.1.1.76/jasmine/" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) > Gecko/20100101 Firefox/45.0" > > My new configuration: > > > > ServerName cups > ProxyRequests off > ProxyPreserveHost Off > ProxyPass / http://localhost:631/ > ProxyPassReverse / http://localhost:631/ > > > > > ServerName jasmine > DocumentRoot /var/www/html/jasmine > > Require all granted > > > > > Sorry, but I'm still confused, with 2 virtual hosts without reverse proxy > work, but I need one with reverse proxy and another with documentroot sou= rce > of apache. Why when I try to access jasmine, does it access my cups > virtualhost? > > # I use with parameter and without. > Log details: > AH00548: NameVirtualHost has no effect and will be removed in the next > release /etc/httpd/conf.d/teste.conf:1 > > > > 2017-06-01 13:38 GMT-03:00 Daniel : >> >> Hello, if you define more than one virtualhost you need to distinguish >> them somehow, so Apache knows where requests will "land". >> >> This "somehow" you must use is called ServerName, each virtualhost >> must have a unique severname. >> >> Also if this is Apache httpd 2.2 you will need a directive called >> "NamedVirtualhost *:80" defined once in server/global config. >> >> 2017-06-01 18:31 GMT+02:00 Luiz Guilherme Nunes Fernandes >> : >> > Dears, >> > i need redirect my apache for use cups and i need use Directo= ry >> > /var/www/html/jasmine with another application. What is a configuratio= n >> > correct? in apache show "Not Found" for directory of Jasmine, if i >> > remove >> > proxy pass directory jasmine work. >> > >> > >> > >> > ProxyPreserveHost Off >> > ProxyPass / http://localhost:631/ >> > ProxyPassReverse / http://localhost:631/ >> > >> > >> > >> > >> > >> > >> > Require all granted >> > >> > >> > >> > >> > >> > -- >> > >> > <<<<<<<<<<<<<<<<<<<---------------------------------------------------= ---------------->>>>>>>>>>>>>>>>>>> >> > >> > < Disse-lhe Jesus: Eu sou o caminho, e a verdade e a vida; ningu=C3=A9= m vem >> > ao >> > Pai, sen=C3=A3o por mim > >> > (Jo=C3=A3= o 14:6) >> > >> > At= t. >> > =E2=99=AA =E2=99=AB Luiz Guil= herme Nunes >> > Fernandes >> > =E2=99=AB =E2=99=AA >> > >> > >> > <<<<<<<<<<<<<<<<<<<---------------------------------------------------= ---------------->>>>>>>>>>>>>>>>>>> >> >> >> >> -- >> Daniel Ferradal >> IT Specialist >> >> email dferradal at gmail.com >> linkedin es.linkedin.com/in/danielferradal >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> > > > > -- > <<<<<<<<<<<<<<<<<<<------------------------------------------------------= ------------->>>>>>>>>>>>>>>>>>> > > < Disse-lhe Jesus: Eu sou o caminho, e a verdade e a vida; ningu=C3=A9m v= em ao > Pai, sen=C3=A3o por mim > > (Jo=C3=A3o 1= 4:6) > > Att. > =E2=99=AA =E2=99=AB Luiz Guilher= me Nunes Fernandes > =E2=99=AB =E2=99=AA > > <<<<<<<<<<<<<<<<<<<------------------------------------------------------= ------------->>>>>>>>>>>>>>>>>>> --=20 Daniel Ferradal IT Specialist email dferradal at gmail.com linkedin es.linkedin.com/in/danielferradal --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org