Questions tagged [namevirtualhost]

51 questions
0
votes
1 answer

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. The scenario is this one. I created a new vhost…
0
votes
1 answer

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 successfully serving the separate applications from…
0
votes
1 answer

Apache mod_proxy

Uggh, I'm spewing that I can't figure this out, I'm so frustrated: servername domain1.com.au ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log …
0
votes
1 answer

How to prevent SSL connections for some Virtual Hosts in apache

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 apache to refuse a connection on port 443 to one of…
Gary
  • 105
  • 3
0
votes
1 answer

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.example.com -> points to…
0
votes
1 answer

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 from the apt-get install of Apache on Ubuntu…
Brigand
  • 135
  • 5
0
votes
1 answer

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 pointing to the right IP. I set my A record: * 14400 IN…
user80314
  • 101
  • 2
0
votes
1 answer

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 matching interface and port. If it finds a matching…
0
votes
2 answers

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 requests for root.TERM.lh to a /TERM/ document root.…
hollsk
  • 101
  • 4
0
votes
1 answer

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 I have got the default host redirecting as…
m3z
  • 161
  • 1
  • 12
0
votes
1 answer

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 got something like the following: NameVirtualhost…
Zulakis
  • 4,153
  • 14
  • 48
  • 76
0
votes
1 answer

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 no luck getting it to work. Basically, I'm…
0
votes
1 answer

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: (<-- currently working) ServerAdmin cdv@nyenrode.nl Servername…
0
votes
1 answer

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 NameVirtualHost *:80 ServerName…
avenas8808
  • 155
  • 8
0
votes
1 answer

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 be handled with wildcards, keeping the apache…