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)

1
vote
0answers
37 views

Java hosting and e-mail server on VPS [closed]

I can't find a good tutorial for this, I looked at https://www.howtoforge.com/ but there is only a weak tutorial on how to setup JDK and Tomcat in a Linux environment. For me this isn't a problem, a ...
0
votes
1answer
40 views

nginx handle multiple locations for one server

I need to setup a virtual host to run my users.example.com website. It needs PHP support via php-fpm. The ideia is to have a mapping like this: users.example.com/~user1/folder/file.php -> ...
1
vote
1answer
81 views

Name based virtual hosts on specific IP address

The Apache Virtual Host documentation says : You can alternatively specify an explicit IP address in place of the * in <VirtualHost *:80> directives. For example, you might want to do this in ...
0
votes
0answers
99 views

Apache VirtualHost error: Invalid host name

It used to be pretty simple for me to set up a VirtualHost to test a new php webapp, for this http.conf: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /opt/webgrind/www ...
0
votes
1answer
32 views

Chain rewrites of Apache requests for VirtualHost to another server in same network

Here is basically what I would like to do: http request comes in, portforwarding in router sends it to a server in the local network (server A) the server identifies the request for a virtual host ...
0
votes
0answers
22 views

Restrict directory listing to specific IP and let full access to files

I would like to configure a virtual host to get directory listing possible on /dir/ only for 2 specific IPs, and return a 403 for other IPs. Besides, I want to let full read access to the files ...
0
votes
0answers
37 views

Mount all Nginx virtual hosts at subpathes of the default host

I have a Nginx setup with several virtual hosts (defined by server blocks for every linux home directory). To allow a preview for domains that currently do not have a DNS entry pointing to my host, ...
-2
votes
1answer
61 views

Unable to redirect port to main domain page on Ubuntu VPS

Basically, I have a Nodejs program running on port 4000 of my server and instead of the visitors having to type mydomain.com:4000 to access it, I'd like it to be displayed when they visit the normal ...
1
vote
2answers
19 views

Wildcard substituion in apache virtualhost file

I'm trying to set up a single apache virtualhost file that will route xyz.mycompany.com to /var/www/html/development/xyz/public Here is my hard-coded version. Is there a way to swap "xyz" with a ...
1
vote
1answer
365 views

Trying to install php-cgi / Apache / Ubuntu 14.04

I'm trying to use the "Php reverse shell" for school purposes on my clean installed Ubuntu 14.04. I configured my Apache/PHP/MySQL as I do normally. I need to get the php-function "pcntl_fork()" ...
2
votes
0answers
259 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
2answers
111 views

Serving Node.JS app on a existing server running page on port 80

I have a server at www.example.com running a PHP-made webpage served by Apache, this page is listening to port 80. Now I want to serve my Node.JS on the domain www.example2.com. Both pages should be ...
0
votes
0answers
24 views

Avoid unexisting subdomains to show main domain

I have a site example.com, and I made a subdomain test.example.com, both work just fine. The problem is that if someone now surfs to an unexisting subdomain like puppy.example.com he still gets to see ...
0
votes
1answer
109 views

Redirect subdomain to an Apache Virtual Host

I have a website "example.com" hosted on a provider that allows me to manage my own DNS. I want example.com to point to the provider's IP address but I want "subdomain.example.com" to point on my own ...
0
votes
0answers
52 views

Apache HTTPD accept requests different destination IP and HTTP Host header

We've built and brought up a new version of a web application. The legacy web application still exists and is still used by legacy clients. Now we want to migrate these old legacy clients to use the ...
0
votes
0answers
64 views

Apache virtual host and Flask broken Json response

I have develop a micro web app (with Flask) to retrieve a json data from a remote web server (virtual host apache + mod_wsgi). If I try to get data from a single remote istances (only flask web server ...
0
votes
1answer
23 views

SSL page only loading in private network

I have got a activated virtual hosts config for ssl like this: <VirtualHost vidanalysis.com:443> ServerName vidanalysis.com SSLEngine on SSLCertificateFile /etc/apache2/ssl/ssl.crt ...
1
vote
1answer
320 views

Excessive disk usage with virtfs / cpanel

I'm running a server using cPanel, with virtfs enabled, and seeing very high disk usage compared to the amount of data actually uploaded/created by each user. I am getting DISKWARN emails telling my ...
1
vote
0answers
21 views

Automatically add/remove entry to/from /etc/hosts when enabling/disabling apache2 virtualhost

When I create virtualhosts, I almost always forget to add an entry to /etc/hosts until I've attempted to check the site in a web browser and moaned about the oversight. What I want to do is modify ...
1
vote
3answers
197 views

Adding a domain and subdomain to server

Greetings and please excuse me if this is a very basic question. The problem: Currently I have bought a domain (crazywebsite.com) from Godaddy.com and I have an unmanaged VPS in Site5.com. I have ...
0
votes
0answers
37 views

Many webapps, one vps

Might be a noob question, Google and SF searches didn't turn up anything super useful. Could be using the wrong words here. I've got a vps, with one port 80 app running on it. I'd like to add two ...
0
votes
1answer
23 views

Wordpress Opening From Wrong Directory

I have an Amazon ec2 m3 medium instance running AMI(RedHat based) Linux. I am trying to host multiple domains on this instance by adding this at the end of httpd.conf: <VirtualHost *:80> ...
0
votes
0answers
75 views

How do I give each Virtual Host in Apache a domain name on a local network?

Background information. I have a server (running Debian Wheezy and Apache 2) at which I am to set up several Virtual Hosts to allow students to host their own website for development purpose. I am ...
0
votes
0answers
19 views

VirtualDocumentRoot and subdomains - correct configuration?

I have setup my vhosts file like so (only question related part): <VirtualHost *:80> DocumentRoot /var/www/example.com/web ServerAlias *.example.com VirtualDocumentRoot ...
-3
votes
2answers
117 views

nginx Virtual Host Problems

I am running nginx on centos and using the method of having individual files for each domain inside a sites-available directory symlinked to sites-enabled. Both conf files are almost identical. My ...
0
votes
1answer
80 views

Default Apache virtual host configuration with static ip

I recently configured an (Ubuntu 14.04) server to use static IP addresses and noticed that: <Virtualhost *:80> No longer seems to work. Previously the 000-default.conf file was used and by ...
-1
votes
3answers
47 views

Apache: enter one of virtual hosts via url

By entering my public ip, browser will show page from this dir: /var/www/html. I have 2 virtual hosts in /var/www/host1 and /var/www/host2. By entering locally "host1.server1" or "host2.server1" in ...
0
votes
2answers
1k 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 ...
0
votes
0answers
37 views

Can't Create Win 7 VM with RHEL 6.5 VMM

I have a server running RHEL 6.5 that I primarily run VMs on it. The VMs I run on it are all Linux, with the exception of one that runs Server 2008 R2. Yesterday, I attempted to install Windows 7 as ...
-1
votes
1answer
44 views

Reverse proxy for 2 domain with same context path

I have 2 different domains my.domain1.com and my.domain2.com and both have context name /app1 and this should be routed to two different backend boxes. Problem here is my.domain1.com is running on ...
0
votes
1answer
177 views

filezilla ftp file server not working with microsoft azure

I have installed Filezilla FTP on (Windows 2012 R2 server). When I try to connect FTP through my local IP (ftp://localhost) it asks for login credentials. Once I enter credentials it connects ...
0
votes
2answers
87 views

Issue with multiple virtual hosts on dedicated server. 2nd VH won't respond, 1st one does

I've got two virtual hosts setup and enabled using a2ensite. It's Ubuntu Server 14.04.1 LTS, Apache2, etc. So there's two config files in /etc/apache2/sites-available and their respective symlinks ...
0
votes
2answers
2k views

Apache virtual host not working on Ubuntu 14.04 LTS

I've been using this tutorial to set up an Apache virtual host on my Ubuntu pc. I've created a no-ip domain which I will be using as the hostname of my virtual host. I've followed every step of the ...
0
votes
2answers
37 views

virtualhost document root access previous folder

How to access previous folder via index.html that not included in virtualhost document root. For example: <VirtualHost *:443> DocumentRoot /var/www/banking/personal-banking ...
1
vote
1answer
32 views

Accessing site after IP redirect

we are using Apache2 to host multiple sites on one system in our local network. One such site is the following: <VirtualHost *:80> ServerName wiki.idi.local DocumentRoot ...
0
votes
0answers
32 views

Configure Apache proxy using an ip address with an argument

I have a server running apache that receives multiple address names and redirect by proxy to their respective server however i have one server that is responsible to answer for two different names: ...
0
votes
1answer
196 views

DNS or Virtual host issue to open abc.com and www.abc.com

I'm facing issue with Linux VPS. Whenever I'm clicking xyz.com, it is working fine. Whenever I'm trying to click www.xyz.com, it is opening firstly configured website on virtual host. I configured ...
1
vote
1answer
216 views

Apache/DNS - Pointing Domain Name to Folder in my Directory

I have a folder with an app that I'm serving. In my httpd.conf, I set up a virtualhost to point to that folder. During development I set it up to point to a subdomain on a domain that I own ...
-1
votes
1answer
135 views

Apache & mod_proxy - What's wrong?

I am limited to one external IP on my server thus to run a mail server alongside with other Apache instance for web hosting, I believe I am forced to use mod_proxy. I tried using mod_proxy in the ...
0
votes
1answer
156 views

nginx suddenly trying to bind on the wrong port

I'm running on a server that has Apache on port 80. I also have nginx installed, and just one conf file in /etc/nginx/sites-enabled which has listen 8888; specified. This works perfectly fine. Now, I ...
0
votes
1answer
100 views

Apache: Connection times out on all subdomains

Recently I've been setting up Apache for a friend (I have't used Apache in ages, I've switched to nginx). Anyway, I was able to set up the server itself, and can connect via "example.com". However, ...
0
votes
0answers
32 views

How do you configure Wildcard SSL on Apache a single IP?

I have recently purchased a Wildcard SSL Certificate for my domain, however I am having difficulty configuring it within Apache. My server has one dedicated IP address, so I have read that you need ...
-1
votes
1answer
44 views

Creating subdomain for domain which is on a dedicated IP

I am not sure if this question belongs here. I have got a new server. It provides three IP addresses. There is a DNS manager where I can setup domain name at a particular IP. Done successfully, and ...
0
votes
0answers
42 views

Redirect between two Apache virtualhosts using the same hostname

I have a server based in Europe which runs Apache with several virtualhosts on the same IP address. Now I want to set up another server based in United States in order to host the same virtualhosts as ...
0
votes
1answer
245 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 ...
-1
votes
2answers
102 views

SSL version of site served by Main Server instead of virtual host (Apache 2.2.15) [duplicate]

I have multiple virtual hosts on port 80 and 443. They all work. The problem comes when addressing the web server by a name not mentioned as a vhost. The documentation says: If the lookup fails ...
0
votes
1answer
85 views

configuring nginx server blocks

On CentOS, I have been using the default webRoot (/usr/share/nginx/html) until now to run my simple scripts and small applications. The other day, I had to configure nginx server blocks to run ...
0
votes
0answers
19 views

Jetty: set up general host

How can i force Jetty to open all deployed webapps starting from specific virtual host like test.localhost:8080/myapp instead of localhost:8181/myapp? Here's snippet from jetty.xml: <Call ...
1
vote
1answer
71 views

Apache Server: IP Address Routes to Domain Instead of DocumentRoot

I have only one website in my server. My desire is to open different directory when the IP address is used as the URL in web browser. However, even though I set the DocumentRoot to a different ...
1
vote
1answer
145 views

Setup client certificate verification in an Apache webserver via SSLVerifyCilent on a Centos 6.5+ server

Goal: My goal is to setup an Apache web server on a Centos box, with SSL and client certificate validation similar to the following Apache virtual host ...