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 (3)

4
votes
2answers
100 views
+50

Can I use TLSv1.0 for one client IP, TLS v1.2 for everyone else

Something like this? # TLS v1.0+ for one IP <VirtualHost _default_:443> Order deny,allow // <------------- HERE Deny from all // <------------- HERE Allow from 10.20.30.40 ...
0
votes
1answer
34 views

Creating a Virtual Host on a local development machine

I'm having issues with creating a Virtual Host on my Ubuntu Apache2 setup for local development. I'm better familiar with httpd.conf running CentOS 6.5 and don't seem to be able to figure out how to ...
0
votes
1answer
21 views

Apache2 DocumentRoot does not exist

I was using Apache2 with /var/www/site and all was working well. We started using proFTPD and we releasised we need to move the sites insie the home directory. Note: Home directory was not there was ...
0
votes
1answer
35 views

How to disable catch-all on a ssl virtual host

My virtual host looks like following: <VirtualHost example.com:443> SSLEngine on SSLCertificateFile /etc/apache2/ssl-keys/example/example.crt SSLCertificateKeyFile ...
-2
votes
1answer
15 views

CentOS6 Apache - Virtual hosts

I was trying to set up a virtual host in apache on my CentOS6 server that handles queries of a subdomain. Let's say, I have the domain 'example.com'. Now, I want to create the sub domain ...
1
vote
2answers
109 views

Apache subdomain configuration not working

I have a Debian 6 server that was configured by somebody else. I was asked to add a subdomain on that server. I configured the DNS correctly (checked with nslookup), created the directory in ...
0
votes
1answer
934 views

lighttpd virtual hosting configuration

I need help setting up virtual hosting in lighttpd. i have the lighttpd default webpage in /var/www/lighttpd dir and i have created other dirs for my other websites /var/www/web1.com/public_html and ...
1
vote
1answer
31 views

Unable to get Virtualhost config working with Apache 2.4.6

I had a HTTPS site running successfully under Apache 2.4.6 on CentOS7. I was then asked to host another site on the server, which at the moment is just HTTP but will eventually also move to HTTPS. I ...
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
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 ...
0
votes
0answers
39 views

Nginx + Apache + PHP-FPM, VirtualDocumentRoot not working

I'm having a webserver with Nginx (1.7.10) is front of Apache (2.4.12), everything is fine until I used VirtualDocumentRoot for mass virtual hosting. I got this error in the log: [Fri May 15 ...
0
votes
1answer
13 views

Cannot access virtual directories on Drupal 7

I have installed Drupal 7.37 on AWS EC2 Linux instance. It was working perfectly until I reinstalled httpd24 and PHP 5.5. Since then, the main page loads perfectly but I cannot access my virtual ...
-1
votes
1answer
20 views

Apache 2/httpd vhost dynamic documentroot

I have an app in folder /var/www/test Also there is an "sub-app" in folder /var/www/test/subapp There is another index.php inside /var/www/test/subapp and If user will type test.com the index.php ...
0
votes
2answers
321 views

hosting two public facing website on single ec2 instance

I am trying to host 2 website xxx.com and yyy.com on a single amazon ec2 instance. So far this is what I have done. Created ec2 instance with Ubuntu and set up apache, mysql & Php On Ec2 I ...
-4
votes
2answers
39 views

Apache2 how to working www.example.com [closed]

I need help. I am sorry wrong write. My LAMP server I created virtual host working http://example.com , but it is NOT WORKING. $ping www.example.com ping: unknown host www.example.com My ...
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
3answers
1k views

multiple virtual hosts on EC2 ubuntu - cannot access second host, always accesses default

I have been searching and reconfiguring for 6 days now and have lost several clumps of hair. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed ...
0
votes
3answers
2k views

upgrading to Apache 2.4: VirtualHost Invalid command 'AssignUserID'

I have many Apache 2.2 Virtual Hosts with same configuration: <VirtualHost *:80> ServerAdmin webmaster@site.com ServerName site.com ServerAlias www.site.com DocumentRoot ...
0
votes
1answer
33 views

Apache 2.4 virtual host on different port than 80

When reading the articles it all seems easy, but I am unable to get this to work. I run apache 2.4.7 Several virtual hosts are running just fine. I need one virtual host to run at port 8080 only. So I ...
1
vote
1answer
929 views

SSL Connection Error

I have purchased a comodo ssl cert and have submitted the Certificate Signing Request (CSR) generated by my server to the ssl management site. With the 3 files it returned me with, - ...
1
vote
1answer
282 views

Virtual DocumentRoot configuration for both WWW and non-WWW - WITHOUT redirect

I have searched a lot but can't find an answer When you setup Dynamic Virtual Hosts in Apache, you do something like this: RewriteEngine On # a ServerName derived from a Host: header may be any ...
0
votes
1answer
48 views

How to correctly setup an Apache VirtualHost as HTTP and HTTPS?

I am trying to setup a locally (for development/testing purposes) SSL site using Apache and mod_ssl and this is what I have in my VirtualHost files: /etc/httpd/conf.d/local.conf <VirtualHost ...
0
votes
0answers
12 views

https passthrough in Apache

Every HTTP or HTTPs connection i have is received by an apache (lets name it as "SERVER A") that acts as router that redirects to other internal computers that holds other apache service. Recently ...
2
votes
1answer
111 views

Troubles with apache and virtual hosts [closed]

I have a BIG problem. I have VPS with Debian OS, and LAMP installed. Fresh install. For control panel i using Webmin. Now i trying to setup multiple sub-domains on my server using webmin for example: ...
0
votes
2answers
52 views

Can't configure two subdomains apache 2.4

I'm trying to configure two subdomains using apache 2.4, but seems that there is a problem I can't resolve. Here is the apache configuration file <VirtualHost *:80> ServerName ...
0
votes
1answer
30 views

Installation of Textpattern CMS with apache2 on debian

I configured the Vhost on the apache2 server: <VirtualHost *:80> ServerAdmin webmaster@asr.lan ServerName www.asr.lan DocumentRoot /home/web/ <Directory /> ...
0
votes
0answers
26 views

Is it good or bad to have dynamic virtual hosts configuration in Nginx?

I have a dozen sub-domains hosted in a single server using Nginx. Currently I am using a single configuration like this: server { listen 80; server_name *.example.com; root ...
6
votes
2answers
951 views

Apache not finding folder on File System; Appending “\xe2\x80\x9d” to end of File Paths

I have three Virtual Hosts running in apache2 on my personal Macintosh running OS X Mavericks and I have ran into a knot of confusion. They are configured in my httpd-vhosts.conf file as follows: ...
6
votes
3answers
2k views

Using VirtualDocumentRoot *only* if a suitable document root exists

I'd like to set up an environment where Apache virtual hosts can be dynamically created without reloading the configuration. I can do this with mod_vhost_alias, I set up my default virtual host ...
4
votes
1answer
1k views

How to trace high CPU Apache process to particular virtualhost

Looking at the output of top I notice that intermittently there are one or two Apache processes consuming a high amount of CPU - anywhere between 50% - 90% The spikes in CPU usage come and go quite ...
5
votes
1answer
2k views

using wildcards in host-aliases for Tomcat's virtual hosts

I want to do the following with Tomcat 5.5: *.mydomain.com should go to my webapp, located at the virtual host mydomain.com. So I have a virtual host mydomain.com, and I want all *.mydomain.com also ...
2
votes
1answer
482 views

IIS7.5 host headers multiple sites on localhost

I have troubles with IIS7 host headers. I'd like to create a domain for managing mysql with phpmyadmin. I tried to configure with these settings without success. The browser displays the ...
0
votes
1answer
29 views

Why does Apache need o+x permissions for a Virtual Host running under suEXEC?

Running Apache 2.4.10 on Arch Linux. I'm trying to restrict an SFTP user to only be able to access his home directory, a public folder under a vhost directory, without being able to access that vhost ...
0
votes
0answers
20 views

Redirecting ServerAlias root to some sub-directory with Apache

I have the following Apache VirtualHost configuration: <VirtualHost 192.0.2.1:80 [2001:DB8:4007:80d::200e]:80> ServerName app.example.com ServerAlias foo.example.com ServerAlias ...
0
votes
1answer
35 views

Redirect with apache subdomain from oher hosting (?)

My requirement: access subdomain.example.com where example.com is a shared hosting, and subdomain is an app (schooltool) running on port 7080. I tried to configure virtualhost, but I can not set the ...
2
votes
2answers
2k 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
1answer
1k views

Setup an apache Virtual Hosts on Debian 7

I tried to setup an apache virtual host on a fresh debian 7 installation like following: applied steps 1.Install apache server: apt-get install apache2 2.create my new derictory: mkdir -p ...
-1
votes
1answer
92 views

Multiple websites running in docker containers, how to implement?

I am running two docker containers, using the following docker-composer script: db: image: cofoundry/mysql environment: - MYSQL_USER=wordpress - MYSQL_PASS=wordpress - ...
1
vote
1answer
113 views

IIS worker process and host headers

I am building a multi tenancy site in ASP.net. It will has three host headers. My understanding is that when a request comes to www.siteA.com, ISS will spin up a worker process for the for the ...
1
vote
2answers
197 views

how to? 1 domain name, 1 ISP Static IP, 1 router, 3 physical web Servers

I have 1 Static IP from my ISP, 58.59.60.61 I have 3 local physical web servers: Win2008 IIS 7, local IP 192.168.10.11, example.com Ubuntu Apache2, local IP 192.168.10.12, subdomain1.example.com ...
0
votes
2answers
2k views

Forbidden (403), when accessing server-status on apache 2.2.22

I'm getting Forbidden error when trying to access www.website.com/server-status mod_status is enabled The VirtualHost: <VirtualHost *:8080> ServerName website.com ServerAlias ...
1
vote
1answer
135 views

Can't access local apache virtualhost using Chrome [closed]

I have a few virtualhosts on my localhost apache, here's the config of one (the others just change the letters before .localhost) <VirtualHost *:80> ServerAdmin admin@dev.localhost ...
-1
votes
1answer
17 views

Append RewriteRule to existing virtual host

My server configuration example.com.conf uses a virtual host for example.com. It contains a few rewrite rules. Now I'd like to add another rewrite rule on the same example.com domain, without editing ...
0
votes
1answer
56 views

How can I use a virtual host to redirect https subfolders to different ports in apache?

I have a web service running on port 8112 and I can redirect a subdomain eg http://myapp.mydomain.com to 127.0.0.1:8112 using a virtual host by setting the ServerAlias, proxypass and proxypassreverse ...
0
votes
0answers
36 views

Apache swapping virtual host entries each request

I have the following httpd.conf. Based on the different domain, it should route the request to the appropriate entry showing a different site based on a similar code base. The problem is that it ...
-1
votes
2answers
73 views

Which domain name to use for a FQDN?

I've been reading for hours on this and am still stuck. Everything I've read indicates I need my hostname and a domain name to get a FQDN. But what about a setup where I have one hostname, using ...
1
vote
1answer
61 views

Apache Virtual Host error

Before I begin to explain my issue, it's worth noting that my DNS records are setup correctly. This is a weird error, I have a server with the ip: 82.4.165.27 hosting several virtual directories. ...
1
vote
3answers
53 views

ServerName with IPv6 with Apache

I'm basically trying to redirect every request on :443 to :443. I found this way to do that, which work pretty nicely, once the visitor discard the SSL alert (my certificate isn't valid for my IP, of ...
0
votes
1answer
45 views

nginx + PHP-FPM disable PHP functions only for certain virtual hosts

How can I disable some php functions only for some of(currently only 1) virtualhosts on my Nginx+PHP-FPM stack?
1
vote
1answer
31 views

Parametric Apache Virtualhost

I have a Virtualhost made this way: <VirtualHost *:80> Servername www.website.com DocumentRoot /path/to/application-1.2.1/client/app/ ErrorLog ...