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)

1
vote
2answers
159 views

Apache2 virtualhost not working (Debian)

I have a local server at home running debian 8. I access this server with its ip address given from the router. Now I wanted to try to work with virtualhosts to make my server a bit better. I created ...
0
votes
2answers
322 views

How to install freeipa server with apache ssl/tls virtualhosts already present

Is it possible to run an FreeIPA server next to a full configured apache server with ssl/tls configured virtual hosts and if yes what do I have to do to not get a conflicting 443 port error during ...
0
votes
1answer
80 views

How to set hostname in MySQL? (OS X)

I want to do something similar to the hosts file in MySQL, where I can associate an IP address with a given hostname. So localhost has a default IP address of 127.0.0.1, and let's say I have another ...
0
votes
1answer
41 views

One vhost, multiple certificates

I have the domain example.com with the subdomains : www.example.com and a.example.com. Let's suppose that I can't buy a wildcard certificate but, I bought the certificates for example.com and www....
2
votes
2answers
57 views

Apache VirtualHost partially ignored

I'm running a local server on windows and I want to provide lan access to a specific part of it whenever a variable is defined. It works fine, except the main config is served instead of the virtual ...
0
votes
1answer
64 views

How use setEnv with another Env?

My question is how can I use setEnv with an already defined environment variable. For example: "/etc/apache2/envvars" ... export SSL_ROOT_DIR=/etc/letsencrypt/live export DEFAULT_HOME_DIR=/var/www/...
-1
votes
1answer
60 views

How to Get Rid Off 'index.php' in URI Using Virtual Host and .htaccess File?

I am using a Virtual Host for my Laravel 4 Project on my local host to get rid off typing 'localhost/L4/public/index.php/route'. Laravel also uses a .htaccess file in it's public directory. Both the ...
1
vote
1answer
907 views

Configuring SSL With Virtual Hosts under Apache and CentOS

I've got two websites being served from a CentOS instance. One of those has SSL enabled, the other is just served on port 80. So, http://siteone.com and https://siteone.com both work fine, as does ...
0
votes
2answers
234 views

Only one Apache virtualhost configuration comes into effect

I'm using Apache 2.4 on an installation of Ubuntu 14.04, and I'm in the process of configuring Apache "virtualhosts" in order to be able to serve different content for different hostnames. I'm trying ...
1
vote
2answers
577 views

Global Apache Alias, ignoring virtual hosts

I have a global entry Alias /.well-known/acme-challenge /var/www/letsencrypt/.well-known/acme-challenge/ in my apache configuration, outside any virtual host. This way, the above Alias is effective ...
0
votes
0answers
17 views

Nginx: Reasonable values for server_names_hash_max_size and server_names_hash_bucket_size [duplicate]

After adding a number of vhosts with a big number of server names I'm getting /etc/init.d/nginx reload * Checking nginx' configuration ... nginx: [warn] could not build optimal server_names_hash, ...
1
vote
2answers
67 views

Httpd/Apache2 Virtual Host and Hostname Conflict

I have a domain ie test.example.com. I set the hostname of my server to this by uisng: hostname test.example.com I then add a Virtual host in /etc/httpd/conf/httpd.conf NameVirtualHost *:80 <...
0
votes
1answer
153 views

nginx reverse proxy and apache backend on seperate hosts - all requests go to same apache vhost

Scenario I want to configure a dedicated nginx reverse proxy that acts as a gateway for multiple backend servers running a traditional lamp stack. I want to make all requests for any subdomains of ...
-2
votes
1answer
24 views

How do I setup an alias for sub.sub.domain.com?

I have a QC server where we define the 'ServerName' for each QC site as a sub-domain in their VirtualHost file, using Named Virtual Hosts on Spache. For example: Site #1: ServerName someproject....
0
votes
0answers
20 views

414 Uri to long

I have the following url to reset my password: http://example.com/resetPassword/LtoyURJd5AYuP3KEGg4gx8fvUprT37LBQDlvhg22qjg=....
2
votes
1answer
2k views

Port 80: connection refused. How to fix on Mac OSX? [duplicate]

I've noticed some issues with Apache virtual hosts on two Macs that otherwise have the same kind of set up (in terms of httpd.conf, vhosts, hosts etc.) On one Mac, virtual hosts are served without a ...
0
votes
2answers
68 views

How can I list the current Apache 2 virtual hosts from the command line?

I want to to retrieve a list of the virtual hosts which are currently loaded and listening for requests i.e not just grepping the config files. It looks like apache2ctl -S does this but I am not 100% ...
0
votes
1answer
28 views

Apache2 simplest redirect not working anymore

I am new at Server configurations, and I´m having a probably weird problem. I set up a webserver with success, even having a working redirect from http to https. And now, without knowingly changing ...
0
votes
1answer
54 views

Setup own DynDNS in VirtualHost

I have a server environment within a network that sits behind a dynamic IP. I as well have a virtual host online where I run Apache 2.4 with a couple of VirtualHosts. Is it possible to create a ...
0
votes
2answers
77 views

Authenticating Client Certificates from Different Issuer

Ok, here's the scenario. A company called "Corp" issues SSL certificates to all their employees for accessing Corp's web resources. Corp also provides a certificate for their Certificate Authority so ...
0
votes
1answer
137 views

exclude one subdomain from serving via https on apache

little intro: I have SSL cert for specific domains (example.com, info.example.com, intranet.example.com, ...) All domains except the info.example.com are running on Apache. info.example.com is ...
7
votes
3answers
784 views

Connection Refused for Apache 2.4 Virtual Host [duplicate]

I have Apache 2.4 running on Mac OS X. apachectl configtest give me: Syntax OK. I have two virtual hosts set up, one called localhost, one called test.dev. <VirtualHost *:80> DocumentRoot "...
-1
votes
1answer
21 views

Change Apache DocumentRoot base on page url

Scenario: I have a http://www.example.com/ and I want my new project to be accessed via http://www.example.com/new. Here's what I tried: DocumentRoot /var/www/html/old/public/ Alias /new "/var/www/...
0
votes
0answers
45 views

Using one virtualhost as reverse proxy for other virtualhosts on the same server

I'm running mpm_itk on my Apache 2.4 and am configuring mod_security. I have run into an issue with mutex errors caused by the different users running Apache. A GitHub commenter introduced a ...
0
votes
1answer
64 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
1answer
96 views

Nginx vhost downloads file

I've setup nginx and php as this tutorial suggests. I've created a second vhost which is the following: server { listen 80; root /projects/mydomain/; index index.php index.html index.htm;...
-1
votes
1answer
273 views

Virtual Host on Apache 2.4 on Linux

I'm trying to create a virtual host that have path to user directory like this /home/user1/dev My *.conf file is it /etc/apache2/sites-available/mysite.conf, like this <VirtualHost *:80> ...
0
votes
3answers
64 views

Postfix not working with user@example.com type user

I have some virtualhost set up on Centos 7.1, I want to have user like user@example.com so that I can reply via user@example.com and not like user@localhost.localdomain Postfix is working with user ...
5
votes
5answers
496 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 http://62....
0
votes
0answers
189 views

NGinX and VHost config running into could not find named location “@handler” error

I see several times this error could not find named location "@handler" in my VHost error log. server { listen 80 default; server_name www.domain.at; root /var/www/domain....
0
votes
0answers
69 views

Virtual Hosts Setup on Ubuntu 15

I am setting up a few virtual hosts for my local Apache environment. I followed this as a basic guide: http://www.unixmen.com/setup-apache-virtual-hosts-on-ubuntu-15-10/ At the moment, I have the ...
-1
votes
1answer
19 views

virtualhosts not seen in apache 2.4 conf

i'm running Apache 2.4 on Fedora linux and at the moment i got a problem with virtualhosts.. I think that 2.4 requires a different configuration than the other one (2.2) i was more used to but i'm ...
0
votes
1answer
368 views

The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /abcef/report

I am getting below error while trying to do some access website url. The proxy server received an invalid response from an upstream server. The proxy server could not handle the request ...
0
votes
1answer
21 views

Debian redirect subdomain to virtualhosts

I am very new to server stuff so please be gentle.. I would like that sub.mydomain.com (from OVH) bring users to http://[ip_address]/~username/ (from KS) In my registrar, I added A type redirection ...
0
votes
1answer
39 views

Which memory settings to use for this MySQL server? [duplicate]

I've been looking in a lot of places so far but I couldn't find any articles about how much memory to allocate to MySQL based on server size. I am about to deploy a website on a relatively small ...
0
votes
1answer
63 views

Force http on single page with site wide https is in place

On my website, I have one page that loads content in iframe form other sources and hence cannot have an http connection. I have an SSL installed and have a site wide https forced on all urls. I am ...
1
vote
1answer
150 views

nginx virtual hosts not working after enabling IPv6

I've just enabled IPv6 on my nginx 1.8.0 webserver based on Debian Jessie. To do this I've edited my Virtual Host-Config: server { listen 80; listen [2001:1608:10:160:34::2]:80; ...
8
votes
3answers
212 views

Webserver randomly serves different vhosts

We've got nginx running on Ubuntu Trusty. It serves several websites over https, running on one ip address. Randomly, although it seems slightly related to work load, sometimes single requests turn ...
0
votes
0answers
47 views

How to set up php fpm work with apache virtual hosts

When I use default config without vhosts everything works fine. But when I add virtual hosts It not working.. Here is how vhost look like: <VirtualHost *:80> ServerName example ...
3
votes
1answer
421 views

Nginx status information of virtual hosts

I want to monitor each nginx virtual hosts(I have multiple nginx config for different domain) and found nginx module ngx_http_stub_status_module But seems this module is for displaying server wide ...
1
vote
0answers
21 views

Apache Quantum Uncertainty Principle… If directive both true and false

The value of the environment variable is set in bash: # export PRODUCTION=true # echo $PRODUCTION # true Here is the relevant excerpt from my virtual host file: <If "-T osenv('PRODUCTION')"> ...
0
votes
1answer
37 views

VirtualHost Apache does not serve subdomain [closed]

I have setup an apache that serves my site in port 80 and 8080 fine. But now I want to move the VirtualHost on 8080 to port 80 in a subdomain. Here is my sites-available configuration file: <...
0
votes
0answers
38 views

Redirect from within vhost for multiple sites

Note: My question is similar to one here but I'm trying to achieve something slightly different. A. I would like to create two vhosts on a ec2 instance that has a elastic ip attached. B. Each of ...
0
votes
0answers
103 views

Nginx - add a subdomain to a running webserver using the same SSL cert

I am running a web server on a Lemp installation. My website is "protected" by CloudFlare, using SSL-full (differences between SSL setups on CloudFlare), hence i have a self-signed certificate which ...
2
votes
1answer
181 views

Secure Webmin with Apache VirtualHost

I'm trying to setup my webmin instance to the address https://webmin.example.com but I'm getting an internal server error (500). Any ideas why? Here's my Apache config: <VirtualHost *:443> ...
1
vote
2answers
1k views

ReverseProxy not working on OSX El Capitan

I am attempting to access my plex web ui through a cleaner url. Currently, you can access it at http://marvin.boldlygoingnowhere.org:32400/web/index.html. I want it to be at http://marvin....
0
votes
0answers
77 views

How can I load and unload tomcat virtual hosts without restarting it?

I'm running a large number of virtual hosts on my tomcat server and I need to add or remove some virtual hosts repeatedly (by changing server.xml) and everytime I have to restart whole tomcat to ...
0
votes
1answer
62 views

Which domain-name was requested? Running virtual hosts on Mongoose web server

I'm currently running Mongoose WebServer 5.5 on Windows 7 I have a number of virtual hosts, running on a single Mongoose server on one IP node. The access log entries are typically 157.55.39.146 - ...
2
votes
0answers
21 views

Virtual Host Alow Encoded Slashesh

I'm trying to allow encoded slashes on my local pc. But i dont know how to configure virtual host. This is my config Apache Version : 2.4.9 (Win64) PHP Version : 5.5.12 I tried this but ...
0
votes
1answer
60 views

VirtualHost https and non-www

I'm attempting to redirect all requests to my main site to https://example.com with VirtualHost. I want to remove the www from the domain and force https. Currently all http:// requests are ...