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)

-5
votes
2answers
31 views

Apache Virtual Hosts Wont Resolve

I have followed this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6 I have a website in /var/www/html. I followed the guide and i have the main ...
1
vote
1answer
28 views

SSL VirtualHost not using DocumentRoot

I'm trying to set up a self-signed SSL certificate between my own VPS and Cloudflare (next to Full SSL). I'm using the following VirtualHosts for this: <VirtualHost *:80> ServerName ...
-1
votes
0answers
11 views

virtualmin install error on CentOs

The Sever OS : CentOs 5.6_x64 Disk Space : 30 GB Ram : 6GB I downloaded "install.sh" from web site and ran it. I got following error. [root@ceylon ~]# ./install.sh Welcome to the ...
2
votes
2answers
53 views

How to set hostname if hosting multiple servers on the same machine?

I'm learning about setting up my own web and mail servers, and I've been confused about this question for days, and articles online (including Server Fault) seems to be so inconsistent with their use ...
-4
votes
0answers
10 views

jetty virtual hosts on LAN [closed]

I have a question about virtual host name on jetty (embedded), let's imagine I want to create a virtual host named www.buzzo.com visible from all nodes of my LAN, and I don't want to edit any windows ...
0
votes
0answers
14 views

Optimized LAMP Virtual Machine [closed]

I was just wondering if there is someone who has actually applied the best practices of optimization in a LAMP Stack and made a virtual OS out of it. I came across http://virtualboxes.org/ but soon ...
0
votes
0answers
15 views

Combining a 301 and aliases in Apache VirtualHost blocks

I manage (just about) Apache and VirtualHosts for the server and am trying to determine the most efficient and SEO-friendly method for a client with: an old domain/dirs/ that needs a 301 to a new ...
-1
votes
0answers
28 views

Why virtualhost is not accessible from the other ips? [closed]

This is my apache configuration for the vhost. <VirtualHost *:80> ServerName test.mydomain.ca ServerAlias test.mydomain.ca DocumentRoot /var/www/test_mydomain/public_html ...
0
votes
1answer
21 views

mod_rewrite in .htaccess and basic auth in vhost - access to paths

I want to lock down a website (made on Drupal) with basic auth. Drupal is using mod_rewrite in its .htaccess file. The problem I'm facing is this - my virtual host looks like this: <VirtualHost ...
0
votes
3answers
55 views

Redirect Naked Domain to SSL

I have a wildcard SSL certificate and I want to redirect all http requests to their equivalent https. My server is a Debian (wheezy) and I am running Apache 2.2.22 I have added the following at the ...
4
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 ...
0
votes
1answer
80 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
3k views

How to chroot VirtualHosts on a Apache server?

I have a FreeBSD server (company's OS of choice). Currently we run several websites on each of the webservers. Websites are in PHP which is run in Apache Module mode. At the Apache is not chrooted so ...
0
votes
0answers
24 views

How to configure apache + php-cgi on CentOS?

I have a Cent OS 6.6 server with Apache + mod_php site (site1.local). I need to configure second site (site2.local) with php_cgi. So, I created a user, gave him permissions on www-folder, configured ...
-1
votes
1answer
30 views

Accessing virtual host from all computers on home network [closed]

I've set up an Apache server on a computer in my home network and enabled name-based virtual hosting. When I enter the URL of the virtual host on that computer in a browser the page is correctly ...
-1
votes
1answer
30 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 ...
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 ...
3
votes
4answers
4k 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, ...
0
votes
1answer
68 views

Restoring Virtualmin Server Leads to Apache Error

I'm struggling to restore a virtual server via virtualmin on an Ubuntu 12.04 VPS. The process goes smoothly but then I am confronted with a critical apache error: root@elementcomputer:~# service ...
0
votes
1answer
863 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
vote
2answers
26 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
0answers
32 views

Replace all URL's based on hostname using Apache 2.2

I am setting up local testing environments for my team. Each of us have our own subdomain that points to our machines on our internal network. In the code, the URL's are all written with the www ...
0
votes
1answer
26 views

apache virtualhost redirection on ubuntu 14

I had set up 2 domain virtualhost files under /etc/apache2/sites-available, www.example.com.conf example.com.conf apart from the default configurations. I've been trying to create a redirection ...
0
votes
0answers
10 views

How to create dynamic vhosts with dynamic root folder locations?

On my development machine I'd like to have one folder for all my projects and access each project with a subdomain that is named after the folder name. Most of the dynamic vhost tutorials I found for ...
0
votes
1answer
1k views

cPanel WHM virtualhost sample

Could anyone possible post a virtual host sample from a working httpd server, if possible with the most features enabled (like suPHP, suExec, php directives such as engine on off and others) ? The ...
0
votes
1answer
29 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 -> ...
0
votes
1answer
38 views

Arch-linux apache 404 mod_rewrite VirtualHost with url suffix

I have a problem with Apache on Arch-Linux. I assume it is related to mod_rewrite, but I am not sure. In the past I always worked with Debian-based systems. Arch seems a little different. I have a ...
1
vote
1answer
74 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
1answer
1k 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
vote
0answers
34 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
884 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: ...
7
votes
2answers
9k views

“Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile]” error

After recently upgrading Apache2 to version 2.2.31 I found a strange behaviour in SSL VirtualHost setup. A few of the website I'm hosting were showing the certificate for the default host even if the ...
1
vote
1answer
44 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
1answer
815 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 ...
0
votes
1answer
977 views

Perl execution failed error when adding a virtual host in Webmin

I'm getting the following error when I try to select the document root when creating a virtual host in Webmin. Error: Directory of / HTTP/1.0 500 Perl execution failed Server: MiniServ/1.700 Date: ...
0
votes
0answers
43 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
23 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
17 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
29 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, ...
1
vote
1answer
4k views

How do I make virtual host DirectoryIndex file appear in the url?

I have setup a virtual host which specifies a default file to load when the URL is called. The problem I have is that I need that default DirectoryIndex file to appear in the URL. So when I go to: ...
2
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, ...
-2
votes
1answer
42 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 ...
0
votes
3answers
956 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 ...
1
vote
2answers
17 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
108 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
101 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
45 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 ...
1
vote
2answers
748 views

How to rewrite url to remove port number?

I've subsonic application running of tomcat. Everything else works on apache. I don't want to write port number everytime so I'd like to set-up a simple directory where subsonic will be accessible. ...
4
votes
2answers
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 ...
0
votes
2answers
341 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 ...