The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
33 views

Redirect all URLs to a single URL

I have a machine foo00 whos CNAME is foo. With nginx I can access my site from the following URLs: foo/ foo00/ foo.domain.local/ foo00.domain.local/ How can I configure nginx so that all are ...
-1
votes
2answers
19 views

How to bind munin to use a vhost or port number?

Currently I'am able to access my munin setup using the default url. www.mydomain.com/munin For security reasons, I want to only allow Munin to be access using port number. Like this ...
1
vote
1answer
35 views

nginx SSL with bare domain and wildcard

This is turning out to be an annoying problem that I'm hoping someone can help me with. To start, I run my own CA, so I'm doing self-signed certs; I can do anything I need with them using openssl. I ...
0
votes
1answer
19 views

Nginx load balancing based on vhosts

Well, I've a setup with 1 load balancers and 2 backends (with nginx). They are both serving two website, beta.xxx.fr and xxx.fr. I want my load balancer to serve both websites. Have you got any idea ...
-1
votes
1answer
33 views

Apache2 vhosts won't work [closed]

i'm trying to setup correctly a vhost under apache2. I'm running Suse 11.3. What i'm trying is: Add row to /etc/hosts 127.0.0.1 my.vhost.domain Create file.conf under vhosts.d <VirtualHost ...
0
votes
1answer
20 views

Multiple Apache Auth User Files

I have multiple vhosts on a host running apache. It is a test system and I would like to give users "basic authentication" access to their sites. For this I have a vhost file with basic auth ...
0
votes
1answer
97 views

Apache2 server (behind Zyxel USG 100 NAT/Firewall) with vhost does not log real clients ip addresses

SOLVED To allow the Zyxel USG 100's NAT to forward untouched packets to my web server i edited the policy route of the Zyxel. Zyxel -> Configuration -> Network ->Routing -> Policy Route ...
2
votes
2answers
118 views

Dynamic vhost giving 403 forbidden on OSX Apache

I have followed this guide and am trying to create dynamic vhosts on OSX by allowing foo.dev to direct to the web folder /foo. My difference being that I am using ~/Sites as my web folder instead of ...
0
votes
1answer
68 views

ClamAV not installed. ClamAV is already installed

Re-Edit: After lots of Googling, lots of tracing, lots of tinkering with the nginx.conf & /vhosts - It came down to an error message saying ClamAV was not up to date. Running clamscan told me ...
0
votes
0answers
14 views

All Websites hosted by our server are redirecting?

I used an html redirect of the form for one of the websites we host: <META HTTP-EQUIV="Refresh" Content="3; URL=http://www.facebook.com/pages/some-facebok-page"> The website was then taken ...
0
votes
0answers
28 views

vhost httpdconf and htaccess not working as it should

I have been struggling for several days now with a mobile redirect and cant get it working. In my vhost I have created a subdomain folder (m) for the mobile version of the website In the root I have ...
0
votes
0answers
120 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, ...
1
vote
1answer
26 views

Compare usage of multiple domains for a single website (Apache)

What would be the most efficient way to compare the usage of multiple domains that are all bound to the same Apache vHost? What I want to know is which domains are used often to access the website and ...
0
votes
0answers
28 views

Dynamic virtual hosts with and without www

I'm trying to configure dynamic virtual hosts with Apache and vhost_alias but I can't figure out how to do this: I'd like to set my path like this: /var/www/vhosts/example.com/www -> ...
1
vote
1answer
68 views

trying to setup vhost in nginx, domain pointing to default

So I'm trying to learn some web server configuration stuff. I've successfully installed nginx with php, and so on. I was in the process of trying to point my domain to my VPS, and that portion is also ...
0
votes
0answers
19 views

Add a new Handler in vHost? How to get the right name?

if a simple question. I wan'to to edit a vHost file on an Apache-Server. I've listed all Modules with apachectl -t -D DUMP_MODULES There I've found the module : "fastcgi_module" -- In the vHost ...
0
votes
2answers
58 views

Apache access only to hostname not ip

Does anyone know is it possible to setup apache vhost in a following way: if user access to www.example.com then vhost takes it to /www/example.com if user access to www.example2.com then vhost ...
0
votes
0answers
25 views

Redirecting apache2 www/non-www domains to one webpage vhosts

<VirtualHost *:80> DocumentRoot /var/www ServerName kittest.pl ServerAlias www.kittest.pl www.kit-test.net kit-test.net kit-test.pl www.kit-test.pl <Directory "/var/www"> ...
1
vote
1answer
227 views

Regular expressions in server_name with Nginx vhost

I have something I'm trying to do with Nginx. Say I have a few users and a subdomain, and each user has a directory at /home/dev/sites/USER_ID. I would like for USER_ID.dev.example.com to point to ...
1
vote
2answers
55 views

Does vhost order make a difference?

On our Centos webserver, Apache has a httpd.conf file which lists several vhost.conf files. We have five of these files for different sets of domains. One vhost.conf file can have hundreds of domains, ...
0
votes
1answer
126 views

Dynamic variable SetEnv vhost Ubuntu Apache2

I apologize if this question has already been asked. I am looking for a solution to make SetEnv use the %2 variable. Is that even possible? My vhost: <VirtualHost *:80> ServerName ...
0
votes
1answer
37 views

Ubuntu Apache2 vhost configuration

I am new to apache2 and I am getting some trouble configuring apache2 on Ubuntu Server 12.04 LTS. All the subdomain are pointing to the default one. Here is my objectives: domain.com -> MAIN SITE ...
1
vote
0answers
76 views

vhost working but not finding index.php

Its my first time that i have a vserver with plesk - i always deleted plesk and worked without it because i didnt liked it but now i try with and it doesnt work as i want it. installed magento here: ...
0
votes
3answers
89 views

Mass virtual hosting: map any portnumber to own domain name

I need to define rule (using mod_rewrite i think) to map any port to portnumber.domain.com. How to do that in Apache2 ? Now i have one config for each port number like below. # 9003.domain.com ...
0
votes
2answers
49 views

Apache Virtual Host not working on .com domain

I have got a strange problem. I have two domains: mysite.co.uk and mysite.com, which need to point to the same directory on my server. The VHost for mysite.co.uk works perfectly. However, mysite.com ...
0
votes
0answers
128 views

apache2: UCC / SAN-certificate, vhosts and SSLVerifyClient

I'm trying to build an apache2-setup using an UCC / SAN certificate containing multiple subdomains. Each subdomain has its own vhost. Only the first vhost contains the ssl-config, the following hosts ...
0
votes
1answer
88 views

CentOS 6 & Apache2.2 VHost Configurations

I have a personal VPS configured to host two domains that I purchased, I managed to configure Apache correctly and get both domains able to point to their own directories and show correctly. I want ...
1
vote
2answers
40 views

Testing vhost config

I've been battling to get a vhost config working on an internal development server at work. I have found other vhost configs in the site-available directory. For some reason, I can't see why my new ...
0
votes
1answer
157 views

Virtual Host on a sub directory

I m working on a Zend web project and there a requirement that it works that it works good on top domain, and on a domain+directory paths like this: www.myDomain.com ...
0
votes
1answer
25 views

It is known that apache resolves foo.com even if as named virtual host only beta.foo.com exists?

The only virtual hosts i have are: <VirtualHost *:80> DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> ...
2
votes
1answer
96 views

Not all .htaccess files are read

I have used MAMP and Ubuntu server for years but have recently tried to use the built-in Apache Server on Mac OS X 10.7.5. My problem is some of my .htaccess files are being read and some are not. I ...
0
votes
1answer
69 views

Deny access to root directory while allowing access to the DirectoryIndex for default page

I am trying to deny access to the root directory while allowing access to certain files (ending in .html and .js) and specifying a DirectoryIndex so requests for the directory will respond with a ...
-1
votes
2answers
71 views

nginx vhost location parameters [closed]

I just transfered a website to a new server; here is my sites conf (vhost) in nginx and the last 2 entries from error.log . The images are not displaying when the index.php loads. regars, server ...
2
votes
4answers
571 views

How to disable https access to specific virtual hosts?

Alright, so I have an Apache server set up with the following directives: NameVirtualHost *:80 <VirtualHost *:80> ServerName example1.com ServerAlias www.example1.com DocumentRoot ...
0
votes
2answers
99 views

setting up a vhost alias with a wildcard for domain and document root - doc root not parsed correctly

I only have a fuzzy idea of the correct terminology to use in this question so please feel free to help me by clarifying it. I have a vhost setup. The idea is that I want a wildcard to route all ...
0
votes
1answer
66 views

Make Nginx point to vhost when visiting server via its IP address

I have a newly set up VPS running Nginx on Ubuntu. Currently when I visit my server's IP (e.g. http://123.123.123.123) it shows the contents of /usr/share/nginx/www. My only vhost (mydomain.com) is ...
2
votes
1answer
118 views

apache vhost config so that _default_ goes to another IP

hi I have 3 apache servers but one inbound ip with one port 80 to listen on. all port 80 traffice goes to 192.168.1.10. But I want to vhost to send certaindomains like www.mydomain.co.uk to the local ...
1
vote
2answers
194 views

how do I reverseproxy the hostname of a subdomain to a different domainname?

I want to reverseproxy a subdomain to another domainname with the same hostname. Example: fitzefatze.sourcedomain.com should get the content of: fitzefatze.targetdomain.com This should be dynamic, ...
2
votes
3answers
1k views

Dynamic nginx domain root path based on hostname?

I am trying to setup my development nginx/PHP server with a basic master/catch-all vhost config so that I can created unlimited ___.framework.loc domains as needed. server { listen 80; ...
1
vote
0answers
241 views

Assets not served - Apache Reverse proxy - Diaspora

I have succeeded in installing Diaspora* on my subdomain diaspora.mattaydin.com. I have VPS running CentOS 5.7 with Plesk installed. By means of an vhost.conf and vhost_ssl.conf file I, (with the ...
0
votes
0answers
50 views

Nginx reload vhost mismatch

Edit: Looks like this has nothing to do with nginx reload. I disabled the cron and still facing this issue. It's just randomly. Anybody an idea? I have an nginx setup that has around 460 vhosts (all ...
0
votes
1answer
135 views

Disallow everything in directory except subdirectories with certain name using .htaccess or vhost.conf

How can I disallow everything in a directory except any subdirectories that have a certain name using htaccess or even vhost.conf for the site? I have a protected main directory which contains ...
0
votes
1answer
119 views

Multiple domains on same virtual hosts in Apache

I'm working on an applicationĀ for my clients that allows them to set up small landing pages for their campaigns. I have a set of templates and views for adding text, photos etc to the templates. ...
1
vote
1answer
126 views

Virtualhosts not working on guest VM accessed via host

I have a Windows 7 host machine running VirtualBox (v4.122) and a guest VM of Kubuntu 12.04 running Apache2. I can access the Apache server from the host machine but it will only load the default ...
2
votes
0answers
225 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 ...
2
votes
1answer
256 views

Handling site not found and page not found with dynamic mass virtual hosting

I have recently setup mass virtual hosting in Apache so that all we need to do is create a directory to create a new vhost. We're then also using wildcard DNS to map all subdomains to the server ...
0
votes
0answers
208 views

virtual hosts on lighttpd can't load

Thats what I did: Added following code to lighttpd.conf $HTTP["host"] =~ "(^|\.)test\.com$" { server.document-root = "/home/test" } created /home/test Restarted Lighttpd but it doesn't load ...
2
votes
1answer
148 views

How come value set by SetEnv can be changed by modifying headers in browser

I'm working with an Apache server setup where we want to use SetEnv in the vhost to define if the code is running in development, beta or production. The actual web application is running on ...
1
vote
1answer
140 views

uWSGI and Nginx python file handling

I've been trying to figure out how to propertly utilize uWSGI with Nginx and have hit a bit of a design roadblock. I'm trying to figure out how my python files should be accessed via uWSGI. I've been ...
0
votes
1answer
332 views

Apache returns 403 Forbidden for alternative port vhost

I'm having an issue getting vhosts to work on Apache 2.2, Debian 6. I have two VirtualHosts, one on port 80 and one on port 8888. The port 80 one has been created automatically by DirectAdmin, the ...