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

learn more… | top users | synonyms

0
votes
0answers
52 views

How do one run PHP-FPM on subdomain?

I run Apache 2.4 and PHP-FPM via ProxyPassmatch in httpd.conf, not vhost (for what it's worth): ProxyPassMatch ^/(.*\.php)$ unix:/var/run/php-fpm.sock|fcgi://127.0.0.1/home/user/www I wanted to ...
0
votes
0answers
29 views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
0
votes
0answers
31 views

Setting up IPv6 on Apache2

Currently I have the "ports.conf" with the following content: NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> Listen 443 NameVirtualHost *:443 </IfModule> <IfModule ...
0
votes
2answers
25 views

Apache: Can I disallow access to a dir except when via a vhost?

If we assume I have a server called machinename.ip which resolves http://machinename.ip to default root (/var/www/html), and resolves http://www.example.com via vhosts file www.example.com to ...
0
votes
1answer
30 views

Setting up my vhosts file correctly in WAMPServer

I am trying to setup an mobile app that I have received from another dev locally on my machine, this is a cordova based mobile app that is basically html5/javascript etc.. I have added the following ...
0
votes
0answers
18 views

Wordpress in Subdirectory of Magento

I'm trying to install a standalone Wordpress in a subdirectory of a Magento installation. The Magento is at the document root and Wordpress is in /blog/. I was originally using a Magento plugin to ...
0
votes
1answer
34 views

How to link www sub-domain to specific vhost DocumentRoot?

Server Environment: Ubuntu 12.04 | Apache 2.2 I have disabled the default vhost configuration using a2dissite default and deleted the default file from sites-available and sites-enabled. I have 3 ...
0
votes
1answer
26 views

apache how to limit per user ip

i have a password protected directory with hundreds of users in htpasswd file. i want to allow download of files on these conditions: check if username is valid (already done). check if another ...
-3
votes
1answer
22 views

VirutualHost not working with live domain

recently I have installed a new cloud server for host 6 site. my problem is my site is not working with my main domain but its working with test domain properly. My virtual host <VirtualHost ...
0
votes
1answer
28 views

Apache Server Not Displaying Site From Correct Directory

I have an apache server setup on Zentyal 3.4/Ubuntu 13.10. I have disabled the default virtual hosts file and enabled one with the following: <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
31 views

How to use vhosts to redirect users to another domain

A web site that we host recently changed it's domain name from www.domainA.com to www.domainB.com My vhost file originally looked like this: <VirtualHost *:80> ServerName ...
0
votes
0answers
81 views

Apache2 vhost config not working (Debian 7)

My Apache 2.4.9 vhost configuration is not working any more on Debian 7. I didn't make any changes and it seems to have broken. Going to my site shows the following in /var/log/apache2/error.log ...
0
votes
1answer
15 views

Does RewriteEngine On enable for all subsequent vhosts

If I have in my conf.d Apache directory 001_vhost.conf 002_vhost.conf ... etc, does Putting RewriteEngine On in 004_vhost.conf enable the Rewrite Engine for 005 006 007 008 etc vhosts, but not those ...
0
votes
1answer
25 views

ngnix vhost setting (with apache) not pointing to my domain

i'm trying to use nginx as proxy for my apache all vhosts. i've set up a config file at /etc/nginx/sites-available/mydomain and i'also created sym link by using a command ln -s ...
0
votes
0answers
21 views

Central VHost for deprecated domains with specific status code and custom responsebody in dependence of requesting endpoint

I have the following scenario: There are multiple domains, which where used by a service which has been shut down a while ago. Hence there are possibly still clients requesting the service I want all ...
0
votes
1answer
43 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
0answers
97 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
35 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
59 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
32 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
44 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
150 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

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
113 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 ...
0
votes
1answer
135 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
0answers
43 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
4k 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 ...
1
vote
1answer
186 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
39 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
42 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
60 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 ...
1
vote
2answers
2k 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
49 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
108 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
349 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
103 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
19 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
61 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
31 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
54 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
150 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
37 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 ...
0
votes
1answer
110 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 ...
1
vote
1answer
122 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
0answers
61 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
41 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
120 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
130 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
237 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
30 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 ...