Using Apache Virtual Host, you can run several websites on the same server.

learn more… | top users | synonyms

0
votes
1answer
16 views

Serve different domain requests to multiple servers (i.e. Apache/Node) all through port 80

What I'd really like to be able to do is run Node, and Apache (or maybe nginx) on the same Raspberry Pi (running Debian for Pi). In the way that apache can set up vhosts for multiple sites on the ...
1
vote
1answer
785 views

Best practices setting up Apache2 Virtualhosts with Aliases?

I'm setting my Apache2 Virtual Hosts, in a Debian Squeeze server, in this way: filename: whatever.mydomain.com Alias /whatever /var/www/whatever.mydomain.com <VirtualHost *:80> ...
0
votes
1answer
695 views

password protect apache vhost + reverse proxy

I wish to create a password protected vhost for selected clients (clients.mysite.com) We have a windows reverse proxy with some vhosts (www, static, secure). I am not using htaccess files as this is ...
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 ...
-1
votes
0answers
5 views

Setting up multiple domains for local development “apps” in Bitnami [migrated]

I've downloaded and installed Bitnami on my machine to run my development environments. Everything works fine when I go to localhost/appName. However, I'm trying to get up custom domains for each of ...
1
vote
2answers
1k views

Accessing virtual hosts on the host OS from a guest OS in VirtualBox

Through VirtualBox, I need to access the host's (Mac OS X 10.6) virtual hosts through guest OSs (Windows XP and 7). I am able to access the localhost URL and can see the directory structure of the ...
1
vote
0answers
49 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 ...
0
votes
0answers
34 views

ec2 vhosts serving from wrong directory

I've been struggling with this one for hours and must have a really simple error! I'm setting up an EC2 server and thus I've create 2 sub-domains from my currently live site and pointed the A ...
1
vote
1answer
25 views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
0
votes
1answer
26 views

Apache Alias - Chiliproject

I'm trying to setup Chiliproject (a ruby application for project management) I have setup my Apache already. However I want the Chiliproject to be like http://abc.com/Chiliproject as I want the ...
0
votes
0answers
30 views

WAMP, Vhosts and mod_rewrite not all playing nicely together

I have a client using a Windows 2012 server with WAMP installed. We use PHP 5.4 with mod_rewrite for SEO friendly URLs. All was working well with them until we tried to enable vhosts to set up a ...
3
votes
3answers
132 views

Deny requests for other domains in Apache 2

Let's say I have xy.com running on a server powered by Apache. It's the default virtual host. Now someone has rewritten his hosts file to redirect yz.com to my server's IP. As my server doesn't know a ...
0
votes
1answer
77 views

Problems with Vhost on Ubuntu 12.04 + Apache2

maybe somone can point me in the right direction with this. A Domain (kat.mydomain.de) pointed to a Ubuntu Server. We set up a new server and changed the Ip adress of the url to the new Server Ip. ...
0
votes
1answer
49 views

Apache HTTPS redirect from old domain to new HTTPS Domain

I used to have a domain which used to have a SSL Certificate, it still does have. But I have changed the domain, and I also have a new SSL Certificate for that new domain. I still have users ...
0
votes
1answer
73 views

Apache ProxyPass in Dynamic Mass Virtual Hosting

In order to make my life easier with new vhosts popping up I set up my httpd.conf to use this: <IfModule mod_vhost_alias.c> <VirtualHost *:80> RewriteEngine On RewriteCond ...
1
vote
1answer
136 views

Apache2 SSL websites keep redirecting to the default website

so I have a Apache2 web server fully operational running in ubuntu. I have successfully modified the vhosts file for normal :80 requests and all web sites function correctly. However, once I attempted ...
0
votes
1answer
115 views

Configure Apache To Return Nothing For Default 443 VHost

I have several vhosts on port 443 and each of these vhosts have the ServerName config option set and also the correct SSLCertificateFile and SSLCertificateKeyFile values as well which vary depending ...
0
votes
2answers
348 views

Apache ssl proxy unwanted redirection

I'm running ubuntu server 12.04. I want to secure access to a python app via apache ssl proxy. I have sudo a2ensite erp.mydomain.com And I have in /etc/hosts 127.0.0.1 mydomain.com ...
0
votes
0answers
38 views

Apache vhost folder isolation on Windows server

I'm running a web server which has been attacked by a WordPress virus. After clearing all things that haved been drop everywhere in my www folder, I decided to isolate every vhost in their own ...
20
votes
5answers
3k views

A domain I've never heard of resolves to my website [duplicate]

I've discovered (via looking at mod_pagespeed cache entries) that a completely random domain I've never heard of before is resolving to my website. If I visit this domain, my website loads. The DNS ...
0
votes
1answer
32 views

Apache - how to use a rewrite rule per vhost?

I have set up a vHost as follows: <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.php DocumentRoot ...
-1
votes
1answer
29 views

apache disable unconfigured subdomains [duplicate]

There is a webserver which has example.com, www.example.com, my.example.com, shop.example.com, static.example.com. All sites except www.example.com is on https. My problem is when I type ...
1
vote
0answers
51 views

Multiple VirtualHosts in vhost.conf on Plesk 11

I have a V-Server running on CentOS with Plesk 11. There I have a webspace with multiple subdomains. I have also a JIRA on port 8280 and a Confluence on 8290 running. My goal is to access JIRA with ...
0
votes
2answers
743 views

nginx default server not working

I'm using Debian, most recent dotdeb nginx-lite. I've read that the first server section found by nginx will be used as the fallback/default section used if there is no specific server section for a ...
1
vote
1answer
45 views

apache/vhosts how to specify what project is loaded at 127.0.0.1

I run MAMP on my mac book and have many projects. I use a single httpd-vhosts.conf for all my vhost configs. In one of my apps I need to have a 3rd party API redirect to my app at 127.0.0.1/[route]. ...
1
vote
1answer
81 views

WAMP, subdomains doesn't work in lan

im trying to set up local subdomain for my new site, i can w/o problem access url: serverxyz from any pc in my network, but when it comes to subdomains it is only possiable from PC that host ...
1
vote
1answer
224 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
1answer
17 views

apache location directive spanning virtual hosts

I have a simple question. In my environment there is a apache configured like this. <VirtualHost 1.1.1.1:80> ServerAdmin a@example.com DocumentRoot /apps/docroot/ ...
1
vote
1answer
54 views

Conflict between SNI and HTTP provided domains

I have recently moved a WordPress website with a smal lstore from one hosting provider to a server of my own running Ubuntu Server 12.04.2 LTS and Apache 2.2.22. I require SSL for the store. I setup a ...
1
vote
0answers
28 views

“Masquerade” mail sender on a multi-domain shared hosting

I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts. The problm is: when one vhost ...
0
votes
2answers
51 views

Placeholders for apache2 VirtualHost

I have a conf like this <VirtualHost *:80> VirtualDocumentRoot /Users/molfar/Sites/%-2+ </VirtualHost> I'd like to dynamically set error and access logs paths. I tried the following ...
0
votes
5answers
122 views

Reject HTTPS connections to other hostnames

I have an SSL certificate installed and working for my website, however, 5 different domains all point at the same host, and if a user is directed to https://(the other four) they get a big angry red ...
0
votes
2answers
32 views

how to deny outside access to multiple vhost sites with one config?

We run multiple sites off one server using vhosts. On one Friday night, we found ourselves with an issue where we needed to kill outside access to all the sites. At the time, we found ourselves ...
1
vote
1answer
104 views

Why the nginx doesn't respond to domain names?

I have nginx with following vhosts: A gitlab vhost: server { listen 443; server_name gitlab.mydomain.com; # e.g., server_name source.example.com; server_tokens off; # don't show ...
0
votes
1answer
81 views

Mac OSX 10.8.4 - Apache - Setting up Virtual hosts

I can't seem to get my virtual hosts working: I have an /etc/apache2/users/scottr.conf set up as: <Directory "/Users/scottr/Sites/"> Options Indexes MultiViews FollowSymLinks ...
0
votes
0answers
58 views

Apache2 - Vhost keep redirect to https vhost, and not the request vhost

i am facing an issue with my vHost setup which I rly can't figure out how to fix First my vhost config: <VirtualHost *:80> ServerName dnsmaster.anonogle.com:80 DocumentRoot /var/www/dns ...
0
votes
0answers
30 views

Phusion Passenger Apache vHost to Sub Directory

I have a rails app that we're trying to migrate t our servers for DNS purposes. The app generates a user url ex ourapp.com/user1. Say user one wants to point user1.com to their respective ...
-1
votes
1answer
97 views

SSL works fine, how can I add in https redirection from http?

Hi I'm having major problems with a server, SSL works perfectly when connecting with https://..., I need to set up redirection from http to https. This is my ssl.conf, CentOS-6, with one IP address. ...
1
vote
1answer
111 views

nginx as proxy multiple vhosts

Runing Windows Server 2008 R2 nginx on port 8080 Apache on port 80 Apache is hosting 5 websites configured within the directive. I'm trying to configure nginx as proxy in front of Apache, (I'll ...
1
vote
0answers
185 views

Configuring dnsmasq to properly work with mod_rewrite on Mac OS X Mountain Lion

I desperately need help. I read an article on the echoditto blog (http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again) and followed the recommendations for setting up ...
0
votes
1answer
28 views

Apache and mod_wsgi prevent user from viewing source

I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application. <VirtualHost *:80> ServerName mydomain.com ErrorLog ...
0
votes
1answer
211 views

Windows Server 2008 R2 Multiple Subdomain DNS Entries + WAMP

I have a Windows 2008 R2 (VPS) server. I have DNS enabled/installed and WAMP as the web server. Initially was going to be IIS but my php application framework I am using is not compatible with IIS. ...
0
votes
5answers
3k views

Apache redirect from http to https not working

I have the following conf files: file1: NameVirtualHost 123.45.67.890:80 <VirtualHost 123.45.67.890:80> ServerName example.com RedirectPermanent / https://example.com/ # ...
4
votes
2answers
6k views

Wildcard vhosts on Nginx

I've just installed Nginx on my server and am extremely happy with the results, however I still cannot figure out how to insert wildcard virtual hosts. This is the [directory] structure I'd like: -- ...
0
votes
2answers
58 views

Apache reverse proxy converts links in page to https

I have set up a reverse proxy and on the resulting page the http links show as https, so they cannot be loaded as this is a pure http page. Could this be caused by a bad reverse proxy configuration? ...
4
votes
3answers
1k views

Debian - how to dump virtual hosts

With Apache 2 running on windows or other Linux distros (eg Centos) you can show a list of virtual hosts by typing httpd -S at the command line. You get a nice listing of virtual hosts and where they ...
2
votes
2answers
109 views

Add www subdomain to my Wildcard Virtualhost

On my local dev server, I set up test sites with the domain like this projectName.dev Using the setting below in my Apache config file... NameVirtualHost *:80 <VirtualHost *:80> ...
2
votes
1answer
88 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 ...
-1
votes
2answers
308 views

Apache vhost log rotate by date

I've got Apache 2.2 running on Debian 7 (on a VPS), with virtual hosts defined for several different websites. I've set up individual error and access logs for each vhost, but I've not found a way to ...
0
votes
0answers
19 views

Website on IIS 7.5 changes behavior depending on its vhost

I'm on a Windows 2008 R2 SP1. I have a website that exhibits a strange problem under the .net framework 4 (you can read the details here) that is bound to partners.company.fr. However during tests we ...