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
12 views

Nginx server block with both IP address and server name for virtual hosts

I am having trouble with configuring virtual hosts with Nginx, and am wondering if that may be because of this remark in Nginx Http Server 2nd Edition, p.68 ...creating server blocks that you ...
0
votes
0answers
16 views

How can I configure a Django website to work with Apache 2.4 VirtualHosts?

I recently started developing Django websites and I want to deploy them on a CentOS VPS with mod_wsgi and Apache. I followed this guide and it works perfectly, but I would like to have more than one ...
1
vote
0answers
18 views

Deal with virtualhost activation trouble

Can't have any error log in my apache server. For example, I have a 403 forbidden error when accessing a page with this conf : Alias /nconf /usr/local/nconf/ <Directory "/usr/local/nconf"> ...
1
vote
1answer
23 views

Redirect alias but not IP

I have a virtual private server under debian 7 . On this server I have a website accessible at let's say https://www.monsiteweb.fr My IP adress is let's say 212.227.100.200 and I can acess to ...
4
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, ...
8
votes
4answers
1k 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 ...
0
votes
0answers
13 views

.htaccess losing to apache virtual host

I have a Drupal app at the default virtual host example.org running on Debian 8. I also have a separate application with a virtual host set to send requests for jones-store.example.org to another ...
0
votes
2answers
59 views

Showing my domain instead of my ip with apache

What I have I have a domain configured to point to my server. When I go to my domain, let's say: example.com it redirects me to: http://104.286.131.72/mysitefolder/index.php? And of course, ...
0
votes
0answers
21 views

Virtualhost won't redirect my domains [closed]

Can't make my 4 web servers work anymore. Here is the 4 configurations : Nagios <VirtualHost *:80> ServerName nagios.vdb.local ServerAlias nagios DocumentRoot ...
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
0answers
11 views

Apache wildcard serveralias

Is it possible to have something like: <VirtualHost *:80> UseCanonicalName Off ServerAlias *.project1.host.dev </VirtualHost> <VirtualHost *:80> ...
2
votes
1answer
1k 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
0answers
10 views

Apache2 Vhost port based not work properly

this is the apache config <VirtualHost site.com:8080> DocumentRoot /var/www/site </VirtualHost> <VirtualHost site.com:80> DocumentRoot /var/www/site2 ...
0
votes
1answer
28 views

How to use multiple wildscards apache vhosts configuration

i know its possible to use wildcard on apache ServerAlias. I'm trying to configure 3 sets but the configuration is falling back on one vhosts instead of each separate. dev environment ServerName ...
0
votes
1answer
1k views

Subdomain error: server DNS address could not be found

I'm trying to add subdomain to my domain. I just installed httpd on my clean centos 7. At first I created file /etc/httpd/conf.d/htmltest.mydomain.com.conf with the following contents: ...
0
votes
1answer
17 views

SOGo as a virtualhost

I am currently busy setting up a mail/web/caldav/carddav server for personal use (apache, postfix, dovecot, SOGo) and at the moment I am getting stuck at the point where I want to specify a subdomain ...
0
votes
1answer
16 views

Move website to a new domain

At the moment, the client website (an ASP.NET app) is accessible via, let's say, www.domain1.com. The client has then purchased a new domain himself, e.g. www.domain2.com, and is wanting to switch to ...
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 ...
-1
votes
1answer
29 views

Apache httpd won't start

I'm unable to start apache on El Capitan. Output of apachectl restart is: [Mon Apr 18 19:47:32 2016] [warn] NameVirtualHost *:8443 has no VirtualHosts [Mon Apr 18 19:47:32 2016] [warn] ...
0
votes
0answers
17 views

Apache vhosts redirect to www.domain.com:PortNumber/

I'm having the following problem with Apache 2.4. I have set httpd.conf file to listen to 2 more ports (8081 and 8082) like this: Listen 80 Listen 8081 Listen 8082 DocumentRoot "C:/xampp/htdocs1" ...
3
votes
2answers
306 views

Apache redirect to index.php

I've got the below virtual host configuration on Centos 6.5 running apache 2.4. <VirtualHost *:4323> ServerName www.first.com ServerAlias first.com DocumentRoot ...
1
vote
1answer
1k 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 ...
3
votes
4answers
9k views

Apache turn off htaccess override not working

How do I go about turning off Apache searching for the .htaccess file by default for each virtual host? I have tried changing the default virtual host although the htaccess file is still being read. ...
3
votes
2answers
12k views

Allow access to PhpMyadmin only on a specified virtualhost

I'm working on a multiple virtualhost Environment. I've installed PhpMyadmin for Mysql Remote Control. Environment is configurate as below: one.domain.com two.domain.com onlyphpmyadmin.domain.com ...
1
vote
0answers
24 views

Set Apache's vhosts with a sub-domain automatically

I'm posting here, because I want to configure apache vhosts automatically, like a.mydomain.com , b.mydomain.com ,etc ... but It doesn't work. I've already setting up a DNS Wilcard record like ( * ...
0
votes
0answers
10 views

Running Session Virtualization in Server 2012 off a single server box

My technical level is below average here. I have an HP (Proliant DL380 Gen9 Xeon e5-2620) machine running Server 2012 and Wyze thin clients off which I want to run 10 full Windows 8 Remote Desktop ...
0
votes
0answers
7 views

URL Redirection to application server based on prefix URL [duplicate]

I am new to apache . We have a platform where many URL requests come to apache and currently all the requests are being forwarded to single application server . Now , we want to have more than one ...
1
vote
0answers
21 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
0
votes
1answer
32 views

Redirect one vhost to another vhost with SSL in Apache

Here is my situation: I have two CNAME domains (domain.one.com and domain.two.com) that point to the same IP/machine and I want to redirect one of the two to the other one, like ...
0
votes
1answer
1k 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 ...
0
votes
0answers
13 views

apache virtual host times out when others succeed

Running Apache 2.4 on windows 2008 r2 using a single public IP with multiple virtual hosts. The issue here is that I have had no problems with other virtual hosts and there is one in particular that ...
0
votes
1answer
25 views

Apache <VirtualHost> tag, do NOT redirect if client's IP = x… how to do that?

so I couldn't find an answer to this question anywhere... I am redirecting my clients from http to https when they're using http by having this in my httpd.conf <VirtualHost *:80> ServerName ...
0
votes
1answer
25 views

Apache ignoring Server Alias and going to first virtual host

I'm having problems getting my ServerAlias domains to work correctly. apache2ctl -S gives: IP.ADDRESS:80 is a NameVirtualHost default server byteinsight.net ...
3
votes
1answer
2k 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
0answers
12 views

apache 2.4 ajp and virtual host not working

I have Centos 7 , Httpd Apache 2.4 and Tomcat 8 my goal is to connect to my site1.com which is on tomcat throw 80 port. Now if I go to site1.com I am redirected to site2.com which is on httpd apache ...
0
votes
1answer
16 views

Incorrect document root being set up

I have set up two virtual hosts. The configuration file is as follows: <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerName a.b.com ...
0
votes
1answer
22 views

Apache Main Server does not serve as default as stated in httpd.conf when virtual hosts are created- Why?

When setting up an Apache server the Main Server section states the following: # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which ...
1
vote
2answers
2k views

Virtual Host showing “Index of /” instead of displaying my site [closed]

So I just ran a clean install of Mountain Lion OSX 10.8 and am trying to get everything back up and running again. I uncommented the php module and vhosts in http.conf, added brew, mcrypt, autoconf ...
0
votes
1answer
24 views

NameVirtualHost address is not supported, proceeding with undefined results

Apache Details Server version: Apache/2.2.15 (Unix) Server built: Aug 28 2015 22:18:57 Varnish varnishd (varnish-3.0.7 revision f544cd8) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2014 ...
1
vote
0answers
28 views

NGNIX server blocks didn't work

I have 4 websites on VPS ip 104.207.148.242. I have been install NGNIX 1.8.1 successful. I do these steps: Make web directories: sudo mkdir -p /var/www/codingvn.com/html sudo mkdir -p ...
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: ...
0
votes
1answer
55 views

nginx mutiple domain with ssl and www redirection

nginx redirection is not working as expected with ssl and www redirection. I have two domains say, domain1.com and domain2.com. I need to have https with www redirection on both ie ...
0
votes
2answers
1k views

ProFTPd: Multiple Domain VirtualHosts on one IP address

I have a webserver that we are giving a consultant FTP access to. For one domain hosted on that server he needs access to a "dev" directory and for a different domain hosted on that server he needs ...
1
vote
0answers
19 views

After changing to SSL index.php post fix is expected before server requests

I installed Mautic in an AWS server and it was working fine on the port 80. But when change to the following site configuration in mautic.conf (placed in /etc/apache2/sites-enabled/mautic.conf) to use ...
2
votes
4answers
8k views

Allowing directory view/traversal for a specific VirtualHost in Apache 2.2

I have the following vhost configured: <VirtualHost *:80> DocumentRoot /var/www/myvhost ServerName myv.host.com ServerAlias myv.host.com ErrorLog logs/myvhost-error_log ...
-1
votes
1answer
29 views

Apache how to create default host for https

I have several sites on my server. For example: domain1.com and domain2.com. If user requests a not existing sub-domain (For example: a.domain2.com) he will be redirected to domain1.com. I want to ...
0
votes
0answers
8 views

ExecCGI is off in virtualhost subdirectory

I've created a new VirtualHost on my computer, like this: <VirtualHost *:80 *:8080> Options Indexes FollowSymLinks ExecCGI AddHandler cgi-script .cgi .pl ServerName ...
2
votes
3answers
7k views

Make ip address redirect to real name with Apache

I want that when people access my web server with the ip address, like http://10.0.0.1, be redirected to the domain name, like http://example.com. I'm using Apache Web Server and I've tried: ...
0
votes
1answer
32 views

Create Sub Domain - Apache Virtual Host on LocalHost

My Question in the title may be wrong, but I have no other Idea how to word it. (Experts please help with this?). Basically sub domains works on my Development Machine when I got to URL ...
0
votes
2answers
2k views

Nginx conflicting server name for subdomain

I currently have a vhost running on Nginx for foo.domain.com and everything works great. I created a new file for a new sub-domain I want to add called bar.domain.com. I use the same settings for ...