Questions tagged [virtualhost]

Questions about using Apache to run multiple domains or websites on a single server.

230 questions
43
votes
7 answers

How can I watch the current connections on my Apache webserver?

I am hosting quite a lot of virtual hosts using Apache in a basic LAMP set up with the help of Webmin/Virtualmin. I am looking for a top-like tool in which I can monitor current connections. The virtual hosting part seems to be giving me trouble…
25
votes
1 answer

Apache virtualhosts no longer working after update to 13.10

I updated my kubuntu to 13.10 today and my virtualhosts that worked perfectly before are no longer working. the s2ensite and a2dissite commands claim "site xxxxxx does not exists" even the files are in sites-aviable and were in sites-enabled I tryed…
redanimalwar
  • 1,610
  • 3
  • 20
  • 36
24
votes
5 answers

Why Apache virtual hosts on Ubuntu 14.04 is not working?

I installed Apache 2.4 on Ubuntu 14.04 and it was working fine by http://localhost/ address. But when I tried to add a new virtual host, for example http://bow.loc and restart apache, new address was not available on http://bow.loc and available on…
17
votes
6 answers

How to enable all site confs with a2ensite (while passing over 000-default.conf && default-ssl.conf)?

I use Ubuntu server 16.04.2 with Apache2, on which I store my personal websites. To enable all my conf files under /etc/apache2/sites-available (besides 000-default.conf and ssl-default.conf), I went to /var/www/html and executed a2ensite. I was…
user423047
15
votes
3 answers

How to configure apache2 with symbolic links in /var/www/?

I want to setup a local web server on my Ubuntu (14.04). So I installed all software to get a LAMP server. The problem is that I do something wrong with creating my virtualhosts. I wanted to create different subdomains on my localhost. So for…
14
votes
1 answer

How to setup apache2 virtualhosts on your home directory on ubuntu 14.04?

I am trying to setup my apache2 virtualhost to run applications from an apps directory on my home directory. home/myusername/apps/application1 Here are the steps there I am currently doing: 1) Creating the directories and adding an index.html file…
Vinicius Santana
  • 265
  • 1
  • 3
  • 8
14
votes
2 answers

Correctly setup apache virtual hosts with multiple users

Thanks in advance for any help you may provide. I've self taught myself using linux (ubuntu), apache, virtual hosts and a few bits with regards to security, though I've yet to put these all together seamlessly. I've also learnt the hard way from…
11
votes
1 answer

How to access Apache2 virtual host from VirtualBox (or any VM)

I am running Ubuntu 11.04, I have setup my localhost so I access my sites at site1.local site2.local By setting up virtual hosts and adding entries to my hosts file. I want to test them in IE so I have installed VirtualBox with Windows. My…
Hailwood
  • 5,017
10
votes
2 answers

How to setup a Virtual host for local development

Ubuntu 11.04 installed with apache2 and all the relevant packages installed. I have tried most of the blogs and made google and other forums my best friends, yet I'm unable to solve this issue. I Need to set up a named virtual host on my local…
mvivekc
  • 101
10
votes
2 answers

How to enable mod_rewrite for virtual host

The mod_rewrite rule is not working on the virtual host. I have wanted this for cakephp. Is there setting to add in the virtual host file?
10
votes
4 answers

Setting up virtual host

I currently have all my websites as directories under /var/www. I would like to set up a virtual host http://foo/ that points to the /var/www/foo/foo directory (and still keep the default localhost behavior). I added the following file, foo, to…
Azmisov
  • 243
8
votes
3 answers

Recommended workflows for Apache virtual hosts?

I do a lot of local web development work on my Ubuntu machine, and I'm constantly setting up virtual hosts in Apache. I don't need to do hard core server management, but I am getting tired of the repetitive process of manually adding config…
8
votes
1 answer

deploy multiple wordpress sites with juju

This may seem like an obvious question, but can you deploy multiple (distinct) wordpress sites with their own databases etc? But using a single deployment? So not dedicated vm's for each sites services. And would the optimized tuning work in this…
6
votes
3 answers

Force https:// and www. with virtual host apache2

I've been looking everywhere for a solution to be able to force https ://www in front of all my URL's using virtual host. This is what I currently have in my 000-default.conf file: ServerName www.domain.com Redirect /…
Edward
  • 123
5
votes
1 answer

Custom php.ini for VirtualHost

Is there a way to use a different php.ini file foreach VirtualHost in apache? I know that there are the php_admin_values php_admin_value safe_mode off But i want to specify a full php.ini file for a virtualhost.
aatdark
  • 1,906
1
2 3
15 16