Questions tagged [virtualhost]

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.

651 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
2 answers
3k views

Apache2 virtual host redirection issue on Chrome

I am having an extremely bizarre issue that seems only present on Chrome, IE and Firefox are fine. I have 2 website being served by 1 IP address, I have 2 identical files in sites-available named ...
user223225's user avatar
5 votes
2 answers
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, ...
showFocus's user avatar
  • 161
4 votes
1 answer
2k views

CentOS virtual host Server DNS could not be found

I want to deploy my project in virtual host in CentOS running server. I have this <Directory /> #change value of next line from none to all AllowOverride none Require all denied </...
guradio's user avatar
  • 141
4 votes
0 answers
2k views

Libvirt & USB Hub Passthrough

I have a virtual machine which I wish to have a USB Hub and all of its devices allocated to a virtual machine. The Hub in question is a USB hub which itself is plugged into one of the ports on the ...
Ryan Walmsley's user avatar
4 votes
1 answer
163 views

apache fails to restart...happened out of the blue :/

Tried navigating to my server today and noticed that NONE of my hosted websites are loading...even if I enter the ip and try to hit the default page I get nothing. I hadn't touched the server since it ...
Jason's user avatar
  • 41
3 votes
0 answers
503 views

Why is apache ignoring my virtual host instructions

Background Admittedly, this is a nube question. What I want to do is to simply install the beanstalk console and make it run from say, app.beanstalk.com on my local machine What I have tried so I ...
abbood's user avatar
  • 1,127
3 votes
0 answers
276 views

Apache2 rewrite root to various subdirectories/subsites on test server

I'm in the process of migrating from an old Debian 6 server to a nice new shiny Ubuntu 16.04 server. On our Debian server, we have the main domain but also several subdomains (each of which has a ....
e_i_pi's user avatar
  • 223
3 votes
1 answer
298 views

VirtualHost/.htaccess - redirect from .com to .se/en not working/ignored (Polylang?)

I'm trying to redirect domain.com to domain.se/en, but it just won't work. It's like another rewrite or redirect is happening to domain.se/sv before I get the chance. I've tried multiple VirtualHosts ...
Jesper Johansson's user avatar
3 votes
1 answer
3k views

Apache Default Virtual Host not loaded in right order

Apache/2.4.6 (CentOS) For a while now, I've had a catchall page setup for my Apache server so bots would not crawl my main site unless they had my domain name. Recently however, I noticed this no ...
Datus's user avatar
  • 41
3 votes
0 answers
276 views

How to harden nginx vhosts (hosting WordPress) from other users in hacked WP installs

Overview: I have a dozen or so WP installs hosted on an Ubuntu 14.04 LTS, w/ PHP 5.5.9 & Nginx 1.4.6. MySQL runs on alternate node, not on public network. Goal: To have directories & files ...
user2977468's user avatar
3 votes
0 answers
2k views

Setting up a reverse proxy from Apache to Node.js

I am attempting to setup a reverse proxy from Apache to a Node.js/Express.js app listening on port 8000. This server has cpanel installed but I have ssh access and pretty much ignore cpanel. I added ...
Ava's user avatar
  • 131
3 votes
2 answers
287 views

Redirect to https:// with www apache2

I am redirecting all http:// request to https:// using apache2 host .conf file like this. <VirtualHost *:80> ServerName example.com ServerAlias www.example.com Redirect / https://...
Riyas Kp's user avatar
3 votes
0 answers
2k views

Apache mod_proxy with HTTPS without key material (using SNI)

I would like to have an Apache 2.4 proxy which redirects port 80 and 443 requests to different machines in the local network, depending on the host name. I used mod_proxy and it works fine with port ...
Daniel Marschall's user avatar
3 votes
1 answer
3k 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 ...
Vince's user avatar
  • 131
3 votes
1 answer
279 views

What is the best setup of mod_mono with more virtual hosts?

I have VPS on debian, where I want to host at least 20 virtual hosts running mono application. On PHP I was using mpm_itk to run each vhost under its own user (I thing it is good for security and ...
Fanda's user avatar
  • 188
3 votes
2 answers
1k views

Apache nested virtual hosts

I have two virtual hosts in a apache server and I would like to do something but I don't know if is possible. The thing is that I have the main application developed and ruby and the blog is in ...
Rafael's user avatar
  • 131
3 votes
2 answers
2k views

Apache virtualhost setting always fail after reboot

Just setup an apache webserver in Debian 6 and add this following virtualhost: <VirtualHost 123.45.67.89:80> ServerAdmin [email protected] ServerName mysite.com ServerAlias www....
nightrod's user avatar
  • 113
2 votes
1 answer
46 views

How to create redirection from two domains in one VirtualHost directive in Apache?

I want users visiting either of napiwki.kontestacja.com and napiwek.kontestacja.com to be redirected to the same address. I'm using the following fragment in httpd.conf: <VirtualHost *> ...
ByteEater's user avatar
  • 133
2 votes
0 answers
1k views

Need to Pass Environment Variables Through Apache Proxy

BACKEND: I have Tomcat connected to Apache and JKMount'ed to webapps.demo.example.com. FRONTEND: The primary VirtualHost is setup for demo.example.com. I have one application Proxy'd to BACKEND. ...
Dorothy's user avatar
  • 179
2 votes
0 answers
6k views

apache2 - ERR_SSL_PROTOCOL_ERROR

I tried to install letsencrypt on my apache2 server (running on Ubuntu 16.04). It seems to work fine but for some reason i got the following error on my website: ERR_SSL_PROTOCOL_ERROR i cant figure ...
Zer0NimO's user avatar
2 votes
1 answer
200 views

Apache Force WWW & SSL & Support other Subdomains

I have been searching for hours and have come very close but not quite complete. I have this currently as my Virtual Hosts file. ServerName example.com DocumentRoot /mnt/WWW ServerAdmin support@krc....
Shaun Williams's user avatar
2 votes
0 answers
4k views

Let's Encrypt SSL install error on apache

I'm trying to install ssl on multiple virtual hosts and domains on same IP. I am using multiple .conf files for this. Already have three working domains on this IP with SSL. But while trying to ...
Ramesh Pareek's user avatar
2 votes
0 answers
459 views

Apache ServerName being ignored

Apache seems to ignore the ServerName for a particular virtual host. I have posted the output of apachectl -S: VirtualHost configuration: 81.145.239.71:80 www.actualvirtual.co.uk (/opt/bitnami/...
RapidScampi's user avatar
2 votes
0 answers
540 views

Apache 2.4 - Virtualhost Ignored?

Using: Apache/2.4.18 (Ubuntu) I have setup my first site, and it works flawlessly. I'm now trying to setup my second site, but it seems to not load the configuration for it. I have done a2ensite. ...
agm's user avatar
  • 21
2 votes
0 answers
2k views

Automatically mapping subdomains to directories with Apache 2.4?

I manage a lot of projects on my personal development server. I just upgraded Apache and accidentally reset the configuration files in the process, so I thought this was a good opportunity to optimize ...
Allenph's user avatar
  • 135
2 votes
0 answers
305 views

Apache Virtual Host isn't redirecting to HTTPS

I have setup Gitlab on my server successfully and have configured it to run on Apache as that is what I use for hosting my current sites. I have used Let's Encrypt to add SSL encryption across my ...
James's user avatar
  • 345
2 votes
0 answers
494 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 ...
user256472's user avatar
2 votes
0 answers
1k views

nodejs app with apache2 server always shows 503

I have an apache2 server which runs all my php web application and I am trying to run a nodejs application. I have enabled proxy and proxy_http but it always shows 503 service unavailable page <...
Asif Alamgir's user avatar
2 votes
2 answers
502 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 ...
mechalynx's user avatar
  • 197
2 votes
0 answers
613 views

Virtual Host to Allow Encoded Slashes

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 it ...
user3187715's user avatar
2 votes
1 answer
106 views

Can Apache Access Logs be kept separated & also combined as well too?

My question may be a bit confusing, and sorry for that. Here is what i need: Well, i have (let's say) 3 Websites hosted on one Apache (which are defined inside each VirtualHost settings. Then i ...
夏期劇場's user avatar
2 votes
0 answers
1k views

Apache2 - 500 server error when trying to access .php file

I have a webserver (Apache2, configured on Ubuntu Saucy Salamander 13.0x). On this server I have the following file in question: /var/www/xxxxx.com/insertToDB.php Accessing this file using GET ...
Orr Yoffe's user avatar
2 votes
0 answers
242 views

TTFB different between 2 identical virtual hosts on same machine

After almost 3 years of finding every answer on either StackOverflow or ServerFault, I'm finally stuck on one. I recently migrated our server from dedicated to VPS, and the problem now is that we have ...
Chris_Alexander's user avatar
2 votes
1 answer
10k views

2-way SSL with apache forward proxy

I'm working to set up Apache as a forward proxy with a client that uses 2-way SSL. The basic flow is myApplication --via http--> Apache proxy --via 2 way SSL--> client. After setting everything up, ...
Mike Levy's user avatar
  • 255
2 votes
1 answer
780 views

Apache: Serving same file on multiple vhosts using regex

I have various virtual hosts (vhosts) setup on an Apache 2.2 server such as: examplea.domain exampleb.domain testsitea.domain testsiteb.domain testsite.domain othersitea.domain On virtual hosts ...
Richy B.'s user avatar
  • 213
2 votes
1 answer
954 views

Moodle on Apache: two virtual hosts with single login

I have a moodle installation on centOS with two folders (virtual hosts)- /2012 and /2011. When browsing to "http://my.moodle/2012" or "http://my.moodle/2011" and authenticating (to either one), how ...
John's user avatar
  • 21
2 votes
0 answers
480 views

nginx 2 symfony2 web application, one ip no domain

I have irritating with nginx. I set up in /usr/share/nginx/www/firstapp one application and in /usr/share/nginx/www/secondapp. in my default conf i setup that in / root localization i want first ...
Krzysztof Koch's user avatar
2 votes
0 answers
3k views

NameVirtualHost *:80 has no VirtualHosts

When I start httpd it says: NameVirtualHost *:443 has no VirtualHosts NameVirtualHost *:80 has no VirtualHosts I have however configured a virtualhost as followed: httpd.conf: Listen 80 ...
mattyh88's user avatar
  • 133
2 votes
1 answer
1k views

mod_rewrite in alias directory not working

I have a wp blog which lives under /var/www/mysite.com/blog and is accessible via www.mysite.com/blog When visiting www.mysite.com/blog/ I see the index page, but all links on subdirectories are no ...
Jay's user avatar
  • 121
2 votes
1 answer
139 views

Apache issue with VirtualHosts

I am setting up a small website in-place on the production server. While we are finalizing all the settings for the final domain we've located it on dev.domain.com, so that our visitors don't see a ...
Karlinde's user avatar
2 votes
0 answers
222 views

Include virtual host for all subdomains

I'm using the below to set a client env variable which my system requires. SetEnvIf HOST "^(\w+).domain.com" CLIENT_ID=$1 UseCanonicalName Off VirtualDocumentRoot /home/user/clients/%-3/ I'm ...
Ashley's user avatar
  • 149
2 votes
0 answers
2k views

Virtual hosting in Varnish with individual vcl files for configuration

I wish to use varnish to put in front of an apache and a tomcat on the same server. Depending on the ip requested, it goes to a different backend. This works. Now for most of the sites the default ...
Michael Sørensen's user avatar
2 votes
1 answer
560 views

CentOS 6 Apache Virtual Host Config Help for Development Server

I have setup a LAMP server with CentOS. It will be used as a development server within our domain. It is our first Linux server and would like to actually put one into production in the future. The ...
JoeyH's user avatar
  • 113
2 votes
0 answers
888 views

Puppet apache vhost automatic deployment

Hi there puppeters :), I hope you can help me with a situation. Namely, I will use puppet to deploy many (I mean really many) nodes with Apache installed. The problem I have is that for now the only ...
Danijel Krmar's user avatar
2 votes
1 answer
211 views

Both virtualhosts pointing to same application. Apache, passenger, rails 3

A couple of months ago I set up a rails app using apache, passenger and virtualhost and I (eventually) got everything working fine. Now I am trying host another application on the same box. I've added ...
Hinchy's user avatar
  • 143
2 votes
0 answers
891 views

lighttpd + FastCGI + Mono not working with evhost enabled

I've started the migration of a Windows VPS to linode.com, choosing lighttpd over nginx and apache to host some sites built on asp.net mvc, and I'm stuck with what I think is a "document-root" ...
rodrigoi's user avatar
2 votes
2 answers
3k views

rhel7, apache2.4 - 403 forbidden with symlink

I googling many many info about this, but none of the proposed solutions did not help me. What i have: clean rhel7 system clean apache 2.4 web dir: /var/www/domain.com/public_html symlink: /var/www/...
Phantom's user avatar
  • 19
1 vote
1 answer
56 views

ErrorDocs | VirtualHost | Apache 2.2.x

So, I'm having a challenge trying to get my virtual hosts (in the example, called bozo) to 'point' at the right error documents for 401, 403,... errors. I am trying the following construct, but it ...
Johnny Canuck's user avatar
1 vote
1 answer
637 views

Apache 2.4 VHosts with FastCGI and suexec-custom

I have setup at my local machine Ubuntu 22.04 Apache 2.4 with suexec-custom. In fact, this setup was working from Ubuntu 16 up to this update to 22.04. I only load some modules, reload some other and ...
centurian's user avatar
  • 461
1 vote
0 answers
405 views

Apache 2.4 "Require ip" not working for /server-status, /phpMyAdmin etc with VirtualHost directives added in httpd.conf

I recently changed using the Event MPM in my Apache 2.4 installation, alongside PHP-FPM and FastCGI proxy, I hope that wasn't the reason for my problem. I also started working with name-based ...
AkiEru's user avatar
  • 77

1
2 3 4 5
14