1
vote
1answer
43 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 ...
-1
votes
1answer
32 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
1answer
76 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
votes
1answer
72 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
1answer
109 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
0answers
75 views

Ubuntu Apache2 Webmin — mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

I'm a relative beginner with LAMP servers; I've played with Ubuntu on a few systems before but this unexpected problem has me stumped. I'm hoping someone can offer advice. I've been reading all day ...
0
votes
1answer
90 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" ...
0
votes
1answer
61 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 ramesh@thegeekstuff.com DocumentRoot "/usr/local/apache2/docs/thegeekstuff" ServerName ...
1
vote
7answers
1k 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: ...
0
votes
1answer
63 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
2answers
125 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
1answer
117 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 ...
3
votes
1answer
108 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 ...
1
vote
1answer
2k 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
1answer
190 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
1answer
884 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 ...
1
vote
2answers
381 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 ...
0
votes
1answer
998 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
1answer
272 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 ...
0
votes
2answers
199 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> ...