Questions tagged [namevirtualhost]

51 questions
1
vote
1 answer

Apache VirtualHost don't match

I have an instance of apache web server and I need to map URL in this way: Url from b2b.domain.eu have to be proxied to another server 10.1.0.100 [IT WORKS] Url from b2b.domain.eu/api have to be proxied to a tomcat api application [IT WORKS] Url…
fciri
  • 141
  • 6
1
vote
0 answers

SSL with Virtual Hosts Using SNI (multiple name based configs) - Need to get working with client certificate

I have the following configuration along with other name based virtual hosts. All others work fine but this one fails when enabling certificate authentication with the following error: Non-default virtual host with SSLVerify set to 'require' and…
Raj
  • 11
  • 2
1
vote
1 answer

apache always serves first named vhost regardless of SNI setting

Apache is always serving the first named vhost regardless of SNI setting. I'm unsure what is causing this. I no longer get the message Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) but I…
1
vote
1 answer

How to set up SSL for one domain of several virtualhosts

I have an Apache2 server with multiple Virtual Hosts. One of the domains now wants SSL so they can do payment work with Stripe. I have a separate IP for that domain (domain1) than is the main IP for server. (main server 99.99.99.88, separate IP…
1
vote
2 answers

Access Apache VirtualHost from localhost

I have a DirectAdmin setup with Apache on a server which is behind NAT. Everything is working correctly when accessing a VirtualHost from outside the machine (either through the Internet and the Intranet) but I'm having problems when accessing the…
Tiago
  • 101
  • 1
  • 5
1
vote
2 answers

Why is my Apache virtualhost showing the default page for Apache?

I was wondering if im doing something wrong or what ? I have subdomain pointing to my server IP ( public ip of my server ) but when ever i go to my subdomain it show me the default page of Apache. Yes I'm using name virtual hosts but still nothing…
IvanAK
  • 147
  • 1
  • 1
  • 11
1
vote
1 answer

How to restrict Apache Location directive to cetain sub-domain?

On our server www.example.com, we use the directive to proxy traffic to a back-end server: ProxyPass http://192.168.1.20 Then we added a sub-domain uat.example.com which points to the same IP address of…
ohho
  • 1,005
  • 8
  • 19
  • 34
1
vote
1 answer

How to make undefined host go to default Page in apache2 virtual hosts

I am using named Virtual hosts NameVirtualHost *:80 ServerAdmin ramesh@thegeekstuff.com DocumentRoot "/usr/local/apache2/docs/thegeekstuff" ServerName test1.mydomain.com ServerAlias www.test1.mydomain.com …
1
vote
2 answers

Apache NameVirtualHost with Domain and IP

I have several IP's which I am trying to configure in Apache2. I have tried searching around but it seems I may be asking for too much. I want to route every direct request for each IP (e.g. http://155.155.155.100) to a dedicated DocumentRoot (e.g.…
darulkffr
1
vote
2 answers

Apache2 ignores ServerAlias

the www versions of all my sites work. the non-www version don't work. All non-www versions go to my default vhost (galengrover.com) Here are the first 2 virtual hosts in httpd.conf. ServerName galengrover.com NameVirtualHost *:80
Galen
  • 1,983
  • 2
  • 12
  • 10
1
vote
0 answers

Apache 2.4 "Require ip" not working for /server-status, /phpMyAdmin etc with VirtualHost directives added in httpd.conf

I recently changed using the Event MPM in my Apache 2.4 installation, alongside PHP-FPM and FastCGI proxy, I hope that wasn't the reason for my problem. I also started working with name-based VirtualHost directives although I don't have multiple…
1
vote
0 answers

Unable to connect to Apache 2 virtual host through browser but curl and ping work just fine

I am just starting working with Apache 2, and I have made a virtual host called wj9studios.dev. When I try to access it from the browser, it gives me 'Unable to Connect'. However, if I use Ping or cURL, it works just fine. This is my…
0
votes
1 answer

Resolve wrong port Apache VirtualHost

I have set 2 different port with subdomain on each port. For example: port 8080 -> a.example.com and port 8081 -> b.example.com. But when I try to open a.example.com:8081 the browser loads the b.example.com:8081 web page (but the url not changing to…
xxi123
  • 3
  • 1
0
votes
1 answer

NameVirtualHost does not work: only loads default host

I have configured Apache 2.2 so that I can have 2 hosts. The problem is when I connect using the second host, the default one is loaded. This is the vhosts.conf file: NameVirtualHost *:80 ServerAdmin support@desytec.com …
jstuardo
  • 155
  • 1
  • 7
0
votes
1 answer

Apache Main Server does not serve as default as stated in httpd.conf when virtual hosts are created- Why?

When setting up an Apache server the Main Server section states the following: # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a #…