I make another tests, but my solution, i change port:
DocumentRoot "/var/www/html/jasmine/"
ServerName jasmine
ServerName cups
ProxyPreserveHost Off
ProxyPass / http://localhost:631/
ProxyPassReverse / http://localhost:631/
2017-06-01 15:41 GMT-03:00 Daniel :
>
there is no problem if they have the same ip in common.
This procedure is called Named Virtual Hosts. That is, Apache httpd
looks at the hostname in the request to know where to deliver the
requests, if no match is found it chooses the first virtualhost, hence
the importance of defining
Ok tnx my last doubt, if i add this names in dns, cups and jasmine have the
same IPadrress.
For example
cups.mydomain 10.1.1.76
jasmine.mydomain 10.1.1.76
2017-06-01 15:20 GMT-03:00 Daniel :
> Servername is to specify the host header, defining different names but
> calling
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
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]
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
Dears,
i need redirect my apache for use cups and i need use Directory
/var/www/html/jasmine with another application. What is a configuration
correct? in apache show "Not Found" for directory of Jasmine, if i remove
proxy pass directory jasmine work.
ProxyPreserveHost Off