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)

0
votes
0answers
10 views

Virtual Host configuration with a subfolder of DocumentRoot [on hold]

I have a development environment (OSX 10.11.3, Apache 2.4.16) where my site information is in a subfolder off the main DocumentRoot folder. The live site contains this same subfolder's contents under ...
0
votes
1answer
994 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 ...
5
votes
5answers
234 views

Virtualhost not working on different port

I'm trying to host my website on single server running centos7.1. I'm able to virtualhost on port 80 but when I change port of second-site to 8080 it points to first-site. However, for URL ...
2
votes
1answer
2k views

How to configure ProFTPD to provide a different anonymous FTP for each domain?

I'm trying to configure ProFTPD to match the following situation: Multiple domains on a single IP address. Each domain should have it's own anonymous FTP directory. Everything runs on Ubuntu ...
-1
votes
0answers
4 views

Use cPanel to map login.domain1.com, login.domain2.com, etc… to myapp.com/login? [on hold]

I'm using cPanel and I would like to map login.domain1.com, login.domain2.com, login.domain3.com, etc... to myapp.com/login. I basically need the same setup as cPanels proxy subdomains ...
-1
votes
0answers
5 views

MAMP PRO 3 - setup virtual host manually (no GUI) [on hold]

I'm in need of automating my local dev environments and creating a new virtual host is part of it. With that said... I don't get what I'm doing wrong. If someone has any idea why my virtual host ...
1
vote
1answer
9 views

Is it possible to send the same domain to a different vhost on Apache?

I need to send my local users on my LAN who visit mydomain.com to virtual host A. Then external visitors from the web who visit mydomain.com are redirected to virtual host B. The reason being; I would ...
0
votes
0answers
7 views

Is it possible to send the same domain on an Apache server to a different vhost?

I am wondering if it is possible to send a domain to a different virtual host on running Apache based on the users location. For example users on my LAN who visit my domain.com get directed to ...
0
votes
1answer
9 views

In an apache ServerAlias directive, what does a question mark mean?

Apache's documentation says: The ServerAlias may include wildcards, if appropriate. and The wildcard characters * and ? can be used to match names My colleague claims that the question ...
0
votes
2answers
52 views

Nginx: proxy_pass dynamic from location

I hope you can help me with a little but tricky nginx problem: I want to configure a dynamic location-block like this: location /test1/* { proxy_pass destination.com/api/*; ...
0
votes
0answers
11 views

Adding SSL to Virtual Host takes down all sites [on hold]

First question on here. Not fantastic with server side stuff but I have had to take it over at work. One of our servers has site that needs an SSL certificate. Now I have gone through all the ...
1
vote
0answers
19 views

Java application is slow in virtual server (KVM)

I have a Java web application, which runs from JAR, starts embedded Tomcat and is using Spring Boot. Problem is that it runs very slow when running in KVM virtual guest. The same application in the ...
1
vote
0answers
15 views

HTTP to HTTPS redirect not working!? - Tried multiple methods

I purchased a Standard UCC SSL Up to 100 pack from Godaddy. I have installed all the required files on my server, and going to https://www.example.com works fine, but http://www.example.com is NOT ...
0
votes
2answers
87 views

How do I make a Windows sub-subdomain?

I have 2 domains: ex1.com ex2.com DNS records: MYIP @ my.ex2.com httpd-vhosts.conf <VirtualHost *:1337> DocumentRoot "D:/Webserver/domains/ex1.com/www" ServerName "ex1.com" ServerAlias ...
-1
votes
1answer
22 views

Enable an external website to resolve to a page on my parent website, keeping URL the same

I have a domain, www.example.COM. I have a page on that domain, www.example.com/page. I have another domain, www.example.NET and I want that domain to resolve to the page first mentioned, ...
0
votes
0answers
37 views

Second subdomain redirects to the main domain, but URL remains the same as second domain

It's quite strange to see this issue as title describes. Here are the details: 1) Created a A-record with "a1". Means subdomain is: a1.example.com, 2) created directory by "sudo nano ...
-1
votes
1answer
31 views

Make Apache work on a custom port using iptables only

My Apache/2.2.14 (Ubuntu) is running on port 80. I'm trying to make it listen on port 999 as well, but without making any changes to the apache config, only using iptables. I've added this to the ...
0
votes
2answers
17 views

single apache with many virtualhosts but only some of them have https

I have apache listening on 80 and runs 4 sites: aaa.com:80 bbb.com:80 ccc.com:80 ddd.com:80 I enable port 443 and add SSL cert only for the first 2 sites ("aaa" and "bbb") and it works well, so ...
0
votes
0answers
5 views

Cannot establish name based virtual server on Yosemite Mac with MAMP [closed]

What I did : 1) uncomment Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf in /Applications/MAMP/conf/apache/httpd.conf 2) Edit the beginning of ...
1
vote
0answers
42 views

Enable XSendFile on Apache on Mac OS X 10.10 - “Invalid command 'XSendFile'”

I have compiled and installed sendfile 0.12 on our mac web server. The module is enabled in the httpd.conf file, as below: LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so I've ...
91
votes
5answers
55k views

Multiple SSL domains on the same IP address and same port?

This is a Canonical Question about Hosting multiple SSL websites on the same IP. I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the ...
-2
votes
2answers
34 views

apache https applies to other http vhosts [duplicate]

I've searched a lot, i also tried lots of thing but still cannot find the problem. I have an apache 2.2.22 server installed on an ubuntu server 12.04 lts. I have a number of http virtual hosts and 2 ...
1
vote
1answer
22 views

How to resolve hostnames from a intranet interface? [duplicate]

I have a public IP and some hostnames pointing to it, on this public IP server I have others intranet interfaces running apache virtual hosts servers, my question is how can I forward external ...
1
vote
1answer
993 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 ...
2
votes
1answer
1k 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
2answers
24 views

Disable Apache Virtual Hosts for the IP, but not for the (sub)domains

I configured one domain and two subdomains, with a redirect to the corresponding https version: <VirtualHost *:80> ServerName domain.com Redirect permanent / https://domain.com ...
0
votes
1answer
14 views

make apache send header 401 unless a parameter is present [duplicate]

I have a rest api that has to be executed only if the parameter "manual" is present in the request. I tried with a RedirectMatch directive inside the virtualhost declaration RedirectMatch 401 ...
0
votes
0answers
14 views

Identifying PHP module already loaded breaking new Nginx virtual site

This is my first time on Server Fault, so I hope this is something you can help with. I have added a second website to my Nginx server, but the PHP site installation isn't working and gives the ...
0
votes
0answers
28 views

NGINX returning 404 error for just one file

I have an NGINX setup with virtual hosts running on Ubuntu 15. On one of them, suddently, a file called assigndocs.php returns a 404 error. But just that one file. All the solutions I found answer ...
0
votes
2answers
19 views

How can I add a trailing slash to a virtual host?

Clearly I don't know what I'm doing because I've been at this one for hours. I have an apache virtual hosts configuration and am mapping subdirectories to different servers. for instance: ...
3
votes
5answers
7k views

Not able to get hosts file working on my Linux server

I have Ubuntu 11.10 running on VirtualBox and I've set up a virtual named server. I'm able to access this site from Windows 7, but I'm not able to access the site from Ubuntu. My HOSTS file is ...
0
votes
2answers
77 views

HTTP working HTTPS not working

I set up Comodo SSL on CentOS 6.7 and Apache/2.2.15 and we are running a CakePHP application on the server. When I go to http/domain its working but when I go to httpS/domain it says 404 Not Found ...
0
votes
0answers
17 views

Assign a large subnet of IPs to KVM Guest VM

I have KVM host node running a few VMs. I create them using SolusVM panel, however they don't have an option to add bulk IPs in one shot to a guest VM which is silly. I'd like to know how I can add a ...
0
votes
2answers
35 views

SSL on apache; the requested URL was not found

I am setting up SSL on my Apache/2.4.6 RHEL server. In httpd.conf, have VirtualHosts as shown below... <VirtualHost *:80> ServerName foo.bar Redirect permanent / https://foo.bar ...
-1
votes
1answer
31 views

Linus virtualserver - multiple URLs and IP address

I set up a Linux virtualhost on server with IP address 888.888.888.888 where document root for URL site1.mysite.com is /var/www/content1 and document root for URL site2.mysite.com is ...
-1
votes
0answers
15 views

DNS and Postfix configuration on Webmin with vhosts

I have a server on Digital Ocean that runs CentOS 7 and Webmin/Virtualmin with multiple vhosts. I'm having difficulties understanding how to configure the mail server correctly and the DNS, so to both ...
0
votes
2answers
29 views

Can I use apache to reverse-proxy based on subdirectory instead of subdomain?

What I have now is several virtual hosts that are identified by subdomain, and then proxied to a server like so: <VirtualHost *:80> ProxyPass / http://192.168.1.1/ ProxyPassReverse / ...
1
vote
1answer
1k views

Munin - apache_watch_ plugin, does not show any data in the graphs that shows activity for per vhosts

I am using Munin for monitoring my server. I installed the apache_watch_ plugin so that i could see apache related activity. The graphs for apache_accesses, apache_processes and apache_volume work ...
0
votes
1answer
26 views

can access virtualhost locally on the same server but cannot access on remote machine

A pretty wired problem occured when configure a virtualhost at port 81. When I use command curl 123.123.123.123:81 or curl localhost:81 in the same server, it got response. While when I access it ...
3
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, ...
0
votes
1answer
34 views

Apache SSL virtual hosts sharing same DocumentRoot

I have a web server with two domains pointing to the same document root. I have separate SSL certs for the two domains. I want (almost) everything that comes to the site(s) to run under SSL. All ...
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
3answers
1k views

Setting up simple vhost on lighttpd

I've recently installed Lighttpd on Ubuntu 10.04. I used the standard concfig file without modification and placed my content in /var/www. I opened a browser typed in the URL www.myexample.co.uk and ...
0
votes
2answers
51 views

Redirect if user uses IP and not (Sub)Domain

I have an Apache server and I want to redirect every user that is connecting to my Website if they don't use a specific Domain, in this case a subdomain. So if I use the IP I want to get redirected to ...
0
votes
1answer
13 views

Redirecting subdomain to utorrent server

I have the subdomain: ut.domain.com The virtual host is set up below. <VirtualHost *:80> ServerName ut.domain.com ProxyRequests Off <Proxy *> Order deny,allow Allow from all ...
5
votes
5answers
6k views

Apache isn't respecting the ServerName directive for a particular site

I've got a few sites configured as VirtualHosts using Apache that have been working fine for a while. I recently changed the hostname of the server to one of the domain names that was being served, ...
1
vote
2answers
47 views

Redirect multiple sites (HTTP and HTTPS) to a single page (ngxin - ubuntu)

I've currently got a floating IP pointing at a server hosting a number of sites, some with SSL, others without. I need to shutdown, backup and resize said server - and was hoping to setup a simple ...
0
votes
0answers
10 views

Using New Relic, how can I monitor request counts by Apache Virtual Host?

I've done the Googling and been unable to find a plugin that seems to record requests per Apache Virtual Host. Running a mixture of static and dynamic sites and I'd like to a top level measure of ...
0
votes
0answers
23 views

Apache aliases configuration returns 404

I have being searching the web and trying multiple configurations to be able to solve this issue. There are multiple examples on Apache website, tutorials and questions but I am not reaching the ...