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.

Filter by
Sorted by
Tagged with
43 votes
1 answer
90k views

Declaring multiple ports for the same VirtualHosts

Declare multiple ports for the same VirtualHosts: SSLStrictSNIVHostCheck off # Apache setup which will listen for and accept SSL connections on port 443. Listen 443 # Listen for virtual host requests ...
user65567's user avatar
  • 671
1 vote
2 answers
243 views

how to? 1 domain name, 1 ISP Static IP, 1 router, 3 physical web Servers

I have 1 Static IP from my ISP, 58.59.60.61 I have 3 local physical web servers: Win2008 IIS 7, local IP 192.168.10.11, example.com Ubuntu Apache2, local IP 192.168.10.12, subdomain1.example.com ...
user avatar
0 votes
2 answers
427 views

Mindtouch broke my Apache2 virtual host configuration

I installed mindtouch using the instructions here and it seems to have broken my Virtual Host configuration. I have several domains running off the same apache instance and this was working fine but ...
grenade's user avatar
  • 322
0 votes
2 answers
564 views

Can I use a single SSLCertificateFile for all my VirtualHosts instead of creating one of it for each VirtualHost?

I have many Apache VirtualHosts for each of which I use a dedicated SSLCertificateFile. This is an configuration example of a VirtualHost: <VirtualHost *:443> ServerName subdomain....
user65567's user avatar
  • 671
0 votes
2 answers
285 views

How to host multiple subdomain on another server

I have one webserver and one Application server. Webserver1 have FreeBSD 8.1, Apache, MySQL and PHP. Application1 server have Centos 5.5, Apache, Mysql and PHP. Both server running fine ...
Azrim's user avatar
  • 1
1 vote
1 answer
120 views

What are secure ways of sharing a server (ssh+LAMP) with friends?

What is the best way to share a virtual server with friends? More precisely, I have the following assets: A virtual private server (Debian Lenny) with root access for myself, running... SSH apache2 ...
Bran the Blessed's user avatar
0 votes
1 answer
2k views

DNS Zone file and virtual host question (repost because my question got moved and now I can't comment on the original for some reason)

Sorry this is a repost, the original question got moved to here form stack overflow and for some reason I can't comment or respond to answers on that one anymore. Hi all, I'm trying to set up a ...
Jake's user avatar
  • 103
1 vote
3 answers
504 views

One IP, One Port, Multiple Servers

I am looking for a solution to forward one public IP address and one specific port to different machines based on hostname (as of now, I need it only for HTTP). The current setup is NAT on a ...
Adrian Godong's user avatar
1 vote
4 answers
3k views

Apache Named Virtual Hosts and HTTPS

I have an SSL certificate which is valid for multiple (sub-) domains. In Apache I have configured this as follows: In /etc/apache2/apache2.conf NameVirtualHost <my ip>:443 Then for one named ...
Freddie Witherden's user avatar
0 votes
1 answer
1k views

How to Define Virtual Host Settings on Ubuntu?

I use Ubuntu 10.10 on my laptop. I added the following to /etc/apache2/httpd.conf NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/var/www/square/public" ServerName square.localhost </...
shin's user avatar
  • 333
5 votes
4 answers
40k views

Why does local host say "It Works"? [closed]

I have configured all my websites in the "Sites" folder to be tested in my browser. When I type a web address for example http://test.dev, I get "It Works". Why?
david's user avatar
  • 83
0 votes
1 answer
829 views

apache and ordering of ServerAlias?

On my site i rewrite all my domains to the root such as *.mysite.com I also have a few before it which all work (there are all simple and only specify a DocumentRoot) static.mysite.com ...
user avatar
0 votes
1 answer
671 views

Apache2 SSL configuration - apache always chooses the first ip-based virtual host

We have an Ubuntu 10.04 server running Apache 2.2.14 with 4 ip-based virtual hosts. We have 2 ip addresses and a ssl cert for each ip address. ex: <VirtualHost 1.1.1.1:80> <VirtualHost 1.1.1....
liferealized's user avatar
14 votes
4 answers
37k views

Can I define HTTP and HTTPS in the same VirtualHost in Apache conf?

I've got quite a big VirtualHost definition which I don't want to duplicate just so the site will also run over HTTPS. Here's what I want to do: <VirtualHost *> ServerName example.com ...
Jake's user avatar
  • 631
1 vote
1 answer
396 views

Apache2 Virtual Host Restrict to Localhost

So here's the deal. I have multiple virtual host. Each virtual is a separate domain. Each domain is for separate applications. Lets say I have virtual hosts for: http://.abc.com http://.def.com http:...
xzyfer's user avatar
  • 323
0 votes
2 answers
463 views

How do I create virtualhosts on CentOS 64bit server?

I have CentOS 64bit with Apache, where is the virtual hosts located so I can create a few vhosts, to setup multiple domains?
Andrew Fashion's user avatar
2 votes
3 answers
29k views

ServerAlias not working

I have a VPS, that I have configured to host multiple websites with name based hosting. It is all good while only using example.com, and www.example.com. It also works with example.net, but when I try ...
Janis Peisenieks's user avatar
0 votes
1 answer
659 views

Help with a simple Apache 'hello world' index file. Here is the tutorial I'm using as well

Here is the tutorial I'm using, just so that you know where I'm places my file. In fact, I'm using the duckling.org example in the tutorial as my own example. Here is the link: http://library.linode....
user avatar
1 vote
1 answer
475 views

apache2 configuration for blog.example.com not working

I have my blog running at a server with ip 10.10.10.10(not real). There is only one virtual host for this blog on the server. Here is the apache configuration: VirtualHost star:80 ServerName blog....
Champion's user avatar
0 votes
1 answer
220 views

Tomcat virtual hosts accessible at two URLs

I have some web apps deployed on Tomcat, using the following configuration: <Engine ...> <Host name="a.mycompany.com" ...> <Host name="b.mycompany.com" ...> <Host ...
Rich's user avatar
  • 1,353
0 votes
2 answers
789 views

lighttpd folder/site specific config files

I've been researching what I'm sure is a very simple task. Coming from .htaccess to lighttpd.conf, I'm sure I am still missing some important concepts. I am using lighttpd for a number of virtual ...
Jonathan Kratzke's user avatar
2 votes
3 answers
1k views

httpd.conf / VirtualHost configuration problem for blog.example.com

I have a site located at /var/www/html/ which works fine. I'm now trying to setup "blog.example.com" by adding the following entry in httpd.conf Setup1 <VirtualHost *:80> DocumentRoot /var/...
siliconpi's user avatar
  • 1,817
1 vote
2 answers
623 views

mod_rewrite should serve files that exist in document root but is ignoring them

I've lifted most of this from Wordpress, so any path on the domain like say /search or /list is directed to /index.php. Fine that works. However, it should not do that if the file being requested ...
Greg K's user avatar
  • 169
0 votes
1 answer
1k views

Developing Local Zend Applications with LAMP on Ubuntu - Virtual Host Configurations

I have several ZF projects running or closed, however, and until today, I always work directly on the remote server. I would like to switch to a local environment while developing, so I was wondering ...
MEM's user avatar
  • 119
2 votes
3 answers
3k views

Apache hosting two sites on the same domain

I want to host two different websites on the same domain, example: <VirtualHost *:80> DocumentRoot /var/www/www1/ ServerName my.domain.com ... </VirtualHost> <VirtualHost *...
yojimbo87's user avatar
  • 672
2 votes
1 answer
682 views

How do I deploy two zend frame work based apps in apache2 like the one in tomcat

I have two Zend framework applications called finance and fleet. Both of them have the same .htaccess file as indicated below RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR] ...
jspeshu's user avatar
  • 189
1 vote
1 answer
254 views

Nginx response trouble when aliasing to a specific file with regex

Basically, I'm trying to handle nice URLs mapped to actual HTML files on the server. I have URLs like so: /posts/nice-blog-post/ That need to return an HTML file on the filesystem like: /path/to/...
Nick Sergeant's user avatar
2 votes
2 answers
14k views

Apache 2 Symbolic link not allowed or link target not accessible

My apache server runs as user foo. I have some Rails applications in /home/foo/app1 /home/foo/app2. Each of them has an vhost <VirtualHost *:80> ServerName app1.foobar.com ServerAlias ...
astropanic's user avatar
5 votes
1 answer
210 views

Apache ignoring 2 of 336 virtual hosts

I've got Apache configured with 336 Name Based Virtual hosts within a single apache configuration file. Each of these VirtualHosts is identically configured and resemble : <VirtualHost *:80> ...
jonathanserafini's user avatar
0 votes
1 answer
244 views

Apache VirtualHost and ModProxy not working as hoped

I have 3 wars set up on a Tomcat instance - these wars are being served at: http://machine:9023/war1 http://machine:9023/war2 http://machine:9023/war3 I have Apache on the same machine. I am trying ...
Rich's user avatar
  • 1,353
0 votes
1 answer
919 views

How to configure apache virtual hosts for a development machine?

I'm trying to setup a dev version and a staging version of my php web app on a Ubuntu Linux 6.06.1 machine with Apache 2.0.55 I have my virtual hosts setup like so via webmin, but i always end up at ...
Matt's user avatar
  • 157
1 vote
2 answers
3k views

Apache cannot find virtual host if domain is the same as server FQDN

Within Apache I had a vhost set up with ServerName host1.example.com Within /etc/hosts there is an entry for host1 127.0.1.1 host1.example.com host1 And in /etc/hostname host1 This is the ...
Kura's user avatar
  • 243
0 votes
3 answers
4k views

How to make Nginx virtualhosts work? (currently gives 403 Forbidden error)

I want to run nginx on my Ubuntu 10.04 32bit Linode VPS. sudo chown -R www-data:www-data /var/www sudo chmod -R 775 /var/www sudo add-apt-repository ppa:nginx/development sudo apt-get update sudo ...
Gok Demir's user avatar
  • 273
0 votes
3 answers
110 views

connecting disparate Virtual / dedicated servers to create a private LAN over the public net

So I have a few VPS's and dedicated servers with a few different hosts. All have multiple IPs allocated to them. How can I go about creating a private LAN to connect all these together? It needs to ...
Zero0ne's user avatar
  • 137
0 votes
1 answer
2k views

Remote logging for multiple Apache virtual hosts using syslog-ng

I'm running a couple Apache web servers that each have 4-8 separate virtual hosts on each of them. I'm trying to setup a dedicated log server that stores each virtual host access and errors logs in a ...
James's user avatar
  • 1
0 votes
1 answer
558 views

Apache Virtual Host and CA Intermediate File

Listed below is an example from an Apache virtual host file. I was curious if there was a particular order that the SSLCertificate, SSLCertificateKeyFile, and the SSLCACertificateFile should be in? ...
John's user avatar
  • 2,276
30 votes
5 answers
97k views

.htaccess is ignored even though VirtualHost has "AllowOverride All"

I'm running a LAMP server on Fedora 13 that's working fine; however, I just added an ".htaccess" file to my current site's docroot folder that is being completely ignored. I've tried half a dozen ...
Brian Lacy's user avatar
  • 1,123
0 votes
1 answer
271 views

Wrong redirection : problem with vhost?

i want to access to http://admin.my-app.com It is supposed to point on web/backend.php, but when i try to access via the URL, it redirects me to the index.php of my application. I don't know what i'...
Tristan's user avatar
  • 498
1 vote
3 answers
3k views

Virtual hosts pointing to the same directory [closed]

I'm trying to set up a server with Kloxo and two virtual hosts. They are pointed to the same IP, but a different directory. Here's the config of virtual host files. They're in different files, and ...
donk's user avatar
  • 163
0 votes
2 answers
95 views

Apaches Virtual Hosts

I am running an SVN host from my windows box, along with a few local development sites. The problem I am having, when I have no virtual hosts everything works fine as everything directs explcitly. ...
Steven's user avatar
  • 101
0 votes
1 answer
521 views

Can't get subdomain to work with virtualhosts

Okay so I'm running apache 2 with a couple of virtual hosts and 2 of those are running on the same domain. Now my problem is that one of those is suppose to run on a sub domain (dev.domain.com) and ...
Hultner's user avatar
  • 49
0 votes
4 answers
1k views

Ubuntu: Apache access forbidden error

I've been experiencing a problem with my virtual hosts, I don't understand why apache looks for /home/* directory if my virtualhosts' directory is somewhere else? tail -f /var/log/apache2/error.log /...
sultan's user avatar
  • 287
1 vote
1 answer
210 views

How to do mass virtual hosting with Java webapp?

We've got a Java webapp. It's a simple .war file. We allow customers to sign up for our service and they get their own URL: http://customer_name.ourdomain.com which points at a special instance of our ...
Shef's user avatar
  • 253
0 votes
2 answers
2k views

Virtual Host needs whitespace in DocumentRoot

How do I use whitespace in mu virtual host file "sites-available" and "sites-enabled"? I'm currently trying: /var/www/My\ Dropbox/public_html/ and it is not working.
Kevin's user avatar
  • 301
1 vote
1 answer
227 views

Configuring an apache virtualhost to link to another's virtualhost's subdomain

I have a domain on my server (on its own virtualhost), e.g. domain.com, which has a lot of subdomains with content on it. sub1.domain.com sub2.domain.com This virtualhost looks like this: ...
Laurent Van Winckel's user avatar
1 vote
4 answers
3k views

apache virtual hosts vs. alias, what is better?

I've been building a dev machine over the last week and it has created some interesting question in my head. One of which is whether setting up an apache vh is better than creating an alias. Now, I ...
Kevin's user avatar
  • 301
2 votes
2 answers
3k views

Inherit config parameters between separate apache vhost definitions

I've got a set of virtual hosts that need separate vhost definitions for *:80 and *:443. After creating these, I've found that I've got 20-40 configuration parameters that both *:80 and *:443 share; ...
user59091's user avatar
0 votes
1 answer
103 views

Map Apache2 vhost to IP

I know that can be done with the hosts file and that it should be done with it but for some reason I'd really have to make Apache act this way. The problem is: the hosts are already in the DNS which ...
Tommy B.'s user avatar
  • 1,434
0 votes
1 answer
382 views

How do I stop Apache Tomcat from requiring context paths to exist on the file system?

I'm in the middle of trying to deploy IIS + Tomcat, and its' a mess. The company has a ton of virtuals set up in IIS, and because there are so many and some of the virtuals contain JSPs, we need ...
user59016's user avatar
1 vote
3 answers
4k views

Editing hosts file on Mac without admin rights

I currently work in a place where every developer programs on the same server and I don't believe it is a very good usage since I have to work on a network share, so it's a bit slow. I setup a copy ...
Tommy B.'s user avatar
  • 1,434

1
47 48
49
50 51
56