Questions tagged [namevirtualhost]
The namevirtualhost tag has no usage guidance.
51
questions
0
votes
1
answer
634
views
Apache not working with NameVirtualHost config
I have a fresh apache setup(Apache/2.4.57 (Unix)) and am struggling with the namevirtualhost config. If I run apachectl -S the output is missing the usual
IPADDRESS:80 is a NameVirtualHost
I ...
1
vote
0
answers
366
views
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 ...
1
vote
0
answers
22
views
Unable to connect to Apache 2 virtual host through browser but curl and ping work just fine [duplicate]
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 ...
0
votes
1
answer
358
views
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....
1
vote
1
answer
345
views
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 ...
0
votes
1
answer
3k
views
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
<...
5
votes
1
answer
185
views
VirtualHost Defaulting to Wrong Deployment on Restart
We have a server running seven domains/subdomains. To try to go as minimal as possible here I'll include four of them.
example.com
www.example.com
dwf.example.com
chris.example.com
The server works ...
0
votes
1
answer
340
views
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 ...
10
votes
1
answer
17k
views
Is "NameVirtualHost" necessary?
up to today I used name-based virtual hosting, but without the NameVirtualHost directive. It worked. Now, I read about the directive, and added it - no change. So - is NameVirtualHost really necessary ...
0
votes
1
answer
2k
views
Apache client denied by server configuration and wrong log
I'm trying to configure a new virtual host with apache 2.4.16
Premise: I already have other virtual hosts and they work fine, so what I've done is simply duplicate the vhost and change paths and names....
1
vote
0
answers
696
views
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 ...
0
votes
1
answer
2k
views
Out of 3, Only one mod_jk worker is not working
I have a server configuration with Apache http Server 2.2 with name based virtual hosts connected to separate Tomcat 7 virtual hosts using mod_jk connector.
Previously 2 Apache Virtual Hosts were ...
2
votes
1
answer
11k
views
Two SSL virtualhosts on same IP with Apache
I have an apache server with one ip address. (on a debian server).
I have several virtualhosts for http and one virtualhost for https
one vhost, redirect traffic to the https vhost and this works ...
1
vote
1
answer
476
views
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 ...
0
votes
1
answer
129
views
Apache mod_proxy
Uggh, I'm spewing that I can't figure this out, I'm so frustrated:
<VirtualHost *:80>
servername domain1.com.au
ServerAdmin webmaster@localhost
DocumentRoot /var/www/...
1
vote
1
answer
109
views
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 ...
2
votes
1
answer
9k
views
Apache/GnuTLS: can't get multiple TLS-enabled virtual hosts to work
A while ago, I set up an SSL certificate authority for our intranet, generated a bunch of certificates and ran a number of sites with them, all on the same physical host with one single Apache2 ...
-1
votes
1
answer
385
views
VirtualHosts: * vs IP Address
When declaring a VirtualHost does it matter if I use an asterisk or an IP if I only have one IP I'm working with? Note, I do have several domains.
The reason I ask is because I get warnings when ...
1
vote
2
answers
584
views
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 ...
1
vote
2
answers
27k
views
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 ...
1
vote
1
answer
965
views
How to restrict Apache Location directive to cetain sub-domain?
On our server www.example.com, we use the <Location> directive to proxy traffic to a back-end server:
<Location /app1>
ProxyPass http://192.168.1.20
</Location>
Then we added a ...
-1
votes
1
answer
104
views
Running Multiple sites with multiple domains apache
I am having a rough time running apache and using multiple domain names
here is a snippet of my config file. I keep getting a error saying that NameVirtualHost has no VirtualHosts. I want them both ...
0
votes
1
answer
634
views
How to prevent SSL connections for some Virtual Hosts in apache [duplicate]
I'm using Name based Virtual Hosts on ports 80 and 443. Some of the virtual hosts only support port 80. I don't have, and won't be getting certificates for these hostnames.
How can I configure ...
0
votes
1
answer
3k
views
Apache2 VirtualHosts and wildcard subdomains
Is there a way to setup a catchall (for subdomains) virtual server for a single domain, where I have a couple pre-defined subdomains.
ie:
webmail.example.com -> points to "/var/web/roundcube"
beta....
1
vote
1
answer
399
views
How to make undefined host go to default Page in apache2 virtual hosts
I am using named Virtual hosts
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/usr/local/apache2/docs/thegeekstuff"
ServerName test1....
2
votes
7
answers
37k
views
Changing port 80 to 8080 in Apache
I'm trying to change the port used by a website from 80 to 8080.
Here is my /etc/apache2/ports.conf:
NameVirtualHost *:80
NameVirtualHost *:8080
Listen 80
Listen 8080
Here is my VirtualHost file:
&...
7
votes
4
answers
22k
views
Apache SNI namevhosts always route to first VirtualHost entry
Apache seems to route all https requests to the first <VirtualHost *:443> regardless of SNI matching on ServerName/ServerAlias fields.
Apache is built with SNI
Server version: Apache/2.2.22 (...
0
votes
1
answer
434
views
Apache Name Virtual Hosts Not Working
I've looked at several answers here, but none of the solutions worked. Here's what I have so far in my /etc/apache2/sites-available/default site (and it is enabled). (No modifications to other files ...
0
votes
1
answer
1k
views
setting up subdomain wildcard: configured A record, VirtualHost... still does not work
Running Apache on CentOS, trying to setup wildcard subdomains,
basically I want .mydomain.com to point to mydomain.com
With cPanel I added *.mydomain.com
With WHM I made sure that A record is ...
3
votes
3
answers
38k
views
NameVirtualHost *:443 has no VirtualHosts on debian squeeze
I have an Apache 2.2 server that works but I am getting the NameVirtualHost *:443 has no VirtualHosts warnings when restarting. But I do have VirtualHosts that match *:443.
The system is Debian ...
0
votes
1
answer
67
views
Security of NameVirtualHost in regard to HTTP request forgery
If I understand the concept of NameVirtualHost correctly it works by reading the Host variable of every HTTP request and matching it to a ServerName in any active VirtualHost directive with the ...
0
votes
2
answers
469
views
setting up a vhost alias with a wildcard for domain and document root - doc root not parsed correctly
I only have a fuzzy idea of the correct terminology to use in this question so please feel free to help me by clarifying it.
I have a vhost setup. The idea is that I want a wildcard to route all ...
0
votes
1
answer
832
views
apache2 defaultsite redirect but not virtual host
I'm trying to set up a new server with several virtual hosts but also such that if the requested fqdn doesn't match a virtual host then the request is redirected to http://example.com/log.php?url=fqdn
...
0
votes
1
answer
161
views
apache2 default namevirtualhost
I got a site server.com which I want to be returned when it is directly adressed using server.com or www.server.com but issue a 404 if the webserver gets accessed using its ip or another hostname.
I ...
4
votes
1
answer
6k
views
How Apache name-based virtual host works with public IP address?
I am new to Apache web server. When we configure Apache web server, we have the options of setting name-based virtual host.
Based on my understanding, when a user type in a domain name www.example....
4
votes
1
answer
163
views
apache fails to restart...happened out of the blue :/
Tried navigating to my server today and noticed that NONE of my hosted websites are loading...even if I enter the ip and try to hit the default page I get nothing. I hadn't touched the server since it ...
2
votes
2
answers
1k
views
NTLM Authorization using Apache NameBased VirtualHosts over SSL
I have a development environment that is fronted via an Apache server. This apache server requires SSL and Centrify-enabled NTLM authentication/authorization with the AD backend, using group access to ...
3
votes
1
answer
14k
views
could not resolve host name while setting up namevirtualhost
I have been working on setting up namevirtualhosts on my centos 5 server. I have added all of the virtualhosts to my httpd.conf file and alos uncommented the namevirtualhost line.I also have my domain ...
0
votes
1
answer
609
views
Apache Wildcard Vhost not working
I can't seem to get a wildcard vhost working on my local apache installation. My vhosts file currently has the contents below. After I edit it, I'm making sure to restart the server but have still had ...
0
votes
1
answer
2k
views
Apache2 (debian) virtualhost not working properly
I'm trying to add another virtualhost to an existing list of hosts (/etc/apache2/sites-availible/default). Here is a partial copy of the current setting:
<VirtualHost *> (<-- currently ...
15
votes
2
answers
23k
views
Should you edit/delete the default apache site config?
I've just followed this tutorial on setting up name-based virtulization in Apache, and it worked really well.
The tutorial basically got you to add a config file to sites-available called yourdomain....
6
votes
1
answer
24k
views
Apache2 No Listening Sockets, unable to open logs while trying to configure virtual hosts
I'm trying to set up multiple domains with virtual hosts in Apache2. I'm currently getting a "Could not connect" error when I try to browse to my site, and whenever I try to restart Apache2, I get an ...
0
votes
1
answer
1k
views
Adding virtual hosts without restarting Apache?
I've got Apache 2.28, on Web-Developer Server Suite, PHP 5.38, MySQL latest version, and have got about 5 virtualhosts.
This is my latest virtual host, which was a dynamic one:
UseCanonicalName Off
...
0
votes
1
answer
788
views
Performance of multiple VirtualHosts vs. ServerAlias in Apache2?
until now, we had multiple web servers with multiple IPs and a lot of domains pointing to them (most of the domain logic was inside our CMS). I liked this aproach because a lot of configuration could ...
3
votes
2
answers
2k
views
Can Apache vhost_alias and NameVirtualHost coexist in same server / ip?
I have a development server for PHP programmers set up and runnig for some time now.
The system is Debian with default Apache package:
# apache2 -v
Server version: Apache/2.2.9 (Debian)
Server built: ...
0
votes
0
answers
91
views
What is wrong with this Vhost setting?
I posted a question about this issue earlier but i am pasting the vhost file here to show that i am going to the same location when i go to nacc.biz and kadence.tv if you look at the bottom of the ...
0
votes
2
answers
215
views
Named Virtual Hosts + HTTPS Shouldn't Work?
The Apache httpd documentation says that name based virtual hosts don't work with SSL. But our sites are working in a configuration like that!
In site1.conf, we have
<VirtualHost *:443>
...
1
vote
2
answers
633
views
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://...
0
votes
2
answers
2k
views
Varnish configuration, NamevirtualHosts, and IP Forwarding
I currently have a bunch of NameVirtualHost based websites, load balanced between 3 apache2 servers using ldirectord. I would like to insert varnish as a reverse-web-proxy between ldirectord and ...
1
vote
2
answers
1k
views
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 ...