Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

learn more… | top users | synonyms (5)

4
votes
2answers
3k views

Nginx Multiple Domains

I am trying to add a second virtual host to nginx. When i go to the new domain it redirects to the old one. I have tried restarting Nginx, rebooting the server. Has anyone come across this before, ...
-1
votes
0answers
15 views

Windows host file stopped working? [migrated]

I have this lines in the hosts file 192.168.99.100 www.testlocal.com and when i try to access them from the chrome it gives me this error This site can’t be reached testlocal.com’s server ...
0
votes
0answers
11 views

Apache Aliased Directory doesn't work for child directories of alias

I'm trying to run two different applications under user. Application 1: /home/user/public_html/app/public/ Application 2: /home/user/public_html/forum/ VirtualHost has the Server set to ...
0
votes
0answers
20 views

vHosts redirects to root [on hold]

I have setup httpd.conf to use VirtualHost for my domain. The current location is xxx.xxx.xxx.xxx/~domain.com Now, if I access directly via the IP, the page will work. However, if I access the IP ...
0
votes
1answer
15 views

Listen to multiple ports only apply to localhost but not external ip of the server

I am running apache on google compute engine and I follow the step here : http://www.groovypost.com/howto/apache/configure-apache-web-site-to-use-multiple-ports/ to enable my website to accept ...
0
votes
0answers
6 views

Apache2.4 - make subdomain point to the same directory as domain

I have a problem configuring access permissions. I need to setup a WordPress subdomain multisite network for testing on my local machine. I'm on Linux, running Apache 2.4.10 in chroot (if this ...
1
vote
2answers
28 views

How have phpMyAdmin (with a Alias) with a virtual host subdomain of a different documentRoot

To increase security in my server I created an subdomain only for admin, like admin.domain.tld and usually i access phpmyadmin by going only at admin.domain.tld/mysqladmin as in config file: ...
47
votes
7answers
56k views

Apache Default/Catch-All Virtual Host?

If I have 3 domains, domain1.com, domain2.com, and domain3.com, is it possible to set up a default virtual host to domains not listed? For example, if I would have: <VirtualHost 192.168.1.2 ...
0
votes
0answers
23 views

Tomcat/apache2 application - virtual host issue. Welcome.action URL not found. Possible mod_rewrite issue

Im having some issues setting up a tomcat application to work with apache2. My KonaKart tomcat application is running on port 8783. And I'm trying to access it publicly on port 443. I created the ...
0
votes
0answers
17 views

Apache virtual host with SSI

I would like to know if is it possible to setup Apache so that SSI is enabled on a virtual-host basis and (if the answer is yes) how it could be done. I'm running version 2.4.7 of Apache on Ubuntu ...
2
votes
1answer
1k views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
0
votes
1answer
2k views

Subdomain error: server DNS address could not be found

I'm trying to add subdomain to my domain. I just installed httpd on my clean centos 7. At first I created file /etc/httpd/conf.d/htmltest.mydomain.com.conf with the following contents: ...
1
vote
1answer
46 views

Apache 2.4 require all not working

My virtual host configuation file contains the following (Apache version is 2.4.7): <VirtualHost _default_:443> [...] <Directory [...]> Require all granted ...
3
votes
2answers
3k views

Apache 2 UserDir for only one VirtualHost

Is it possible to enable the UserDir Directive for just one VirtualHost rather than have it on for all and then disable it (with "UserDir disable") for each VirtualHost you don't want it on? I have ...
0
votes
0answers
12 views

How to divert request from apache to multiple servers ports (Zope 8080, Tomcat 8081 etc.)?

Hi I am running multiple applications on the same machine like Plone which is using ZOPE application server that is running on port 8080 and Tomcat which is hosting multiple web applications and ...
1
vote
0answers
21 views

environment host urls convention and using wildcard DNS

we're setting up new hosts and environment servers on our company... creating 3 server instances... dev, stage, production we've multiple clients and multiple projects per client so this is our idea: ...
0
votes
1answer
1k views

Two virtual hosts with internal and external ip for same application, same port

Is it possible to have two virtual host configurations for the same server - one with internal ip address and one with domain name(the domain name points to the same server with the internal ip ...
1
vote
1answer
1k views

Apache2 / debian wheezy serving only default virtual host

I have seen all other questions around this topic, but none of the answers have worked. Situation: VPS on 1 IP, debian wheezy 7 running with apache2. Even simple virtualhost will not work, as named ...
0
votes
0answers
31 views

Certbot - SSL: unknown protocol error

We are trying to install and use Certbot. We have installed it and we tried to install one certificate (for https://www.tuxx.cn/), but this gives the following error when using Mozilla Firefox: ...
1
vote
2answers
3k views

Apache 2.4 :: What happened to conf.d/ virtual hosts?

Getting local devel environment setup with Apache 2.4. Looks like things have changed compared to 2.2 In particular, conf.d/ directory is gone and now we have just conf/ directory with a single ...
2
votes
2answers
34 views

How to keep one page of a site secure using mod_rewrite

I'd like redirect access to a url from http to https for only a couple of pages on my website. I know how to do it for a whole site using the rewrite in apache virtual hosts: RewriteEngine On ...
0
votes
1answer
1k views

Moving Zend Framework 2 from apache to nginx

I would like to move site that uses Zend Framework 2 from Apache to Nginx. The problem is that site have 6 modules, and apache handles it by aliases defined in httpd-vhosts.conf, #httpd-vhosts.conf ...
2
votes
0answers
21 views

Apache Virtual Host isn't redirecting to HTTPS

I have setup Gitlab on my server successfully and have configured it to run on Apache as that is what I use for hosting my current sites. I have used Let's Encrypt to add SSL encryption across my ...
0
votes
0answers
18 views

Map folder inside a vhost to another vhost

I have a website domain.com and inside its document root there is a media folder. I want to create media.domain.com that will resolve into the "media" folder. Here are my current vhost configs. ...
14
votes
3answers
22k views

How to set a favicon.ico for a specific Virtual Host on Nginx?

I am using Nginx as my webserver for the first time. I didn't have any trouble to set it up and everything works great. The problem came when the designer asked me if he could send me "the icon in the ...
0
votes
1answer
18 views

Using RewriteRule to match RewriteMap value and ignore any trailing slash and characters?

I'm trying to use RewriteMap in a apache 2.4 virtualhost .conf file to redirect a number of URLs. A variety of requests can refer to a single entry in the map and I'm having trouble matching these ...
6
votes
5answers
7k views

Apache virtual host based on *source* IP

Is it possible to configure Apache for different virtual hosts based on the source IP? (i.e. same interface, same hostname, but two different virtual hosts, with different content, based on source ...
0
votes
1answer
25 views

Understanding Apache rules in <Directory> directive

I have tried reading the manual although to be honest I am still finding it hard to understand and get my head around what the Order/Allow actually does. I have the following code inside a virtual ...
0
votes
1answer
40 views

Network Related Apache 2.4 403 Authz Error AH01630

I've never seen this style of behavior before. If I access this site on most networks it works. However if I am on-site of the client I cannot pull up the site. TWC Home, works fine. ATT Cell Data, ...
1
vote
0answers
23 views

What's the impact of a high cpu steal time on XenServer's dom0?

From what I understand, cpu steal time is the CPU time that the VM kernel requested, but was denied by the hypervisor because it was serving another VM. We have a XenServer that has dozens of VMs ...
1
vote
1answer
46 views

Proxy from another domain to a virtualhost

The first two vhosts works as expected. The second one proxy a Odoo server. I would like to make another proxy from my secondary domain to my Odoo server. However, Odoo must receive the subdomain ...
0
votes
1answer
32 views

What is the best way to isolate vhosts on a linux server?

Firstly, I'm wondering what is the best way to isolate Apache's vhosts from each other. I suppose this has something todo with the Linux filesystem as well, since it's not a good practise to have ...
0
votes
0answers
14 views

apache2 vhost not logging errors or access

i have a docker container with two apache2 vhosts inside for local dev one vhost is <VirtualHost *:80> ServerName api.docker.sm.com ServerAlias api ServerAdmin dev@email.com ...
0
votes
1answer
39 views

Apache 2.4 ErrorDocument for multiple subdomains

we're running a large project for different customers, each has its own subdomain. Apache should not execute any script if an invalid subdomain is used. Instead, an error page should be shown. ...
0
votes
1answer
62 views

One domain on Apache goes to default page without www

I'm using Apache/2.4.16 on FreeBSD 10.2. I have two instances of Apache running, each serving several domain names. The server has two network interfaces, one for the public Internet, one only ...
0
votes
1answer
42 views

ServerAlias without www not working on SSL virtualhost

I'm moving a site from a server to another, and using its current and still valid SSL certificate. The machine I'm working on is a Ubuntu 14.04 server. I've set up my usual virtual host file, let's ...
1
vote
3answers
2k views

Nginx conflicting server name for subdomain

I currently have a vhost running on Nginx for foo.domain.com and everything works great. I created a new file for a new sub-domain I want to add called bar.domain.com. I use the same settings for ...
1
vote
2answers
43 views

rhel7, apache2.4 - 403 forbidden with symlink

I googling many many info about this, but none of the proposed solutions did not help me. What i have: clean rhel7 system clean apache 2.4 web dir: /var/www/domain.com/public_html symlink: ...
3
votes
1answer
2k views

Require ldap-group on apache 2 vhost fails when trying to log in

I have a vhost which I'm trying to get to work with LDAP-authentication. My configuration looks like this: <VirtualHost 0.0.0.0:80> DocumentRoot "/var/www/root/" ServerName ...
0
votes
1answer
1k views

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: ...
1
vote
1answer
22 views

make Apache reload skipping vhost on error

have several vhost configured with there own conf file under conf.d. This works fine, but ever so often i have to make changes to one of the files and the reload apache. Is there a way where apache ...
0
votes
1answer
28 views

mod_wsgi app in two different ports

I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 ...
4
votes
1answer
15k views

a2ensite error “Site not exist” when creating virtualhost apache2 on ubuntu

I have created files for my site in the /home/junda/www/ directory. I use symfony2, means the public files goes to /home/junda/www/symfony2-tries/web/ directory. I then type this following command to ...
1
vote
2answers
31 views

apache2 : www goes to default server and I don't know why

I am setting up an apache2 server with a number of virtualhosts. They are all working except for www.mydomain.com, which goes to the default virtualhost instead of the virtualhost I created for it. ...
0
votes
0answers
38 views

Nginx server block with both IP address and server name for virtual hosts

I am having trouble with configuring virtual hosts with Nginx, and am wondering if that may be because of this remark in Nginx Http Server 2nd Edition, p.68 ...creating server blocks that you ...
0
votes
0answers
27 views

How can I configure a Django website to work with Apache 2.4 VirtualHosts?

I recently started developing Django websites and I want to deploy them on a CentOS VPS with mod_wsgi and Apache. I followed this guide and it works perfectly, but I would like to have more than one ...
1
vote
0answers
21 views

Deal with virtualhost activation trouble

Can't have any error log in my apache server. For example, I have a 403 forbidden error when accessing a page with this conf : Alias /nconf /usr/local/nconf/ <Directory "/usr/local/nconf"> ...
1
vote
1answer
26 views

Redirect alias but not IP

I have a virtual private server under debian 7 . On this server I have a website accessible at let's say https://www.monsiteweb.fr My IP adress is let's say 212.227.100.200 and I can acess to ...
8
votes
4answers
1k views

Is it possible to set an SSLProtocol in Apache for a single VirtualHost (poodle)?

I'm trying to test a patch for the poodle vulnerability that involves disabling SSLv3 on my web server. In order to test this on a non-production environment first, I'm setting the SSLProtocol on a ...
0
votes
0answers
14 views

.htaccess losing to apache virtual host

I have a Drupal app at the default virtual host example.org running on Debian 8. I also have a separate application with a virtual host set to send requests for jones-store.example.org to another ...