Questions tagged [virtualhost]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

Creating additional Virtual Host Ubuntu Server

I have currently one website running perfectly on my LAMP server (Ubuntu Server 16.04.3). I now would like to add another one to the server. So i first went to the /etc/apache2/sites-available file ...
Deez Nutz's user avatar
1 vote
2 answers
11k views

Virtual Host not working as expected when I'm using .dev domain extension

I'm doing a Laravel project and I need to set up a virtual host example.dev in my system. For that I've created a copy of 000-default.conf and named it as example.dev.conf and placed in /etc/apache2/...
Anoop S's user avatar
  • 23
13 votes
1 answer
51k views

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) ...
Vinicius Santana's user avatar
10 votes
4 answers
20k views

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 ...
Azmisov's user avatar
  • 243
10 votes
2 answers
62k views

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?
user12gk21hkj's user avatar
3 votes
1 answer
5k views

Apache server - domain name return "404 Not Found"

When I try to reach the site with my IP it works fine but when I try to use my domain name to connect I get "404 Not Found". I am on Ubuntu Server 16.04.1 LTS /etc/hosts/ 127.0.0.1 localhost ...
Dogomen's user avatar
  • 43
3 votes
1 answer
8k views

Apache Virtual Hosts

I am looking to create links on my website like support.mydomain.com or management.mydomain.com rather than mydomain.com/support etc. I have heard you can do it with apache virtual hosts but I am not ...
Harry Cameron's user avatar
1 vote
1 answer
3k views

apache virtual hosts not working

I have production server with apache/2.4.7 on ubuntu 14.04. I have several virtual hosts on it. This server located on hetzner. I decide to transfer my server on more powerfull server. I create ...
Zagorodniy Olexiy's user avatar
0 votes
1 answer
2k views

Give access to php to /home folder

I am need for apache to have access on all (well... most anyway) user folders on the same machine, so that I can access some data, do some magic and then display them on a webpage for remote viewing. ...
Ant's user avatar
  • 101
43 votes
7 answers
202k views

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 ...
Piotr Kula's user avatar
17 votes
6 answers
87k views

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 ...
user avatar
6 votes
3 answers
28k views

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: <VirtualHost *:...
Edward's user avatar
  • 123
4 votes
2 answers
7k views

Running Apache and Tomcat together on different subdomains?

Posted this on ServerFault but didn't get a response. Hoping I will have better luck on the Ubuntu site. I have been trying to get this working the whole of today. I have a server which resolves to ...
Ritesh M Nayak's user avatar
3 votes
2 answers
44k views

Apache 2: Syntax error on line 225 of /etc/apache2/apache2.conf

Can anyone help?? # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.4/ for ...
SamC's user avatar
  • 33
3 votes
2 answers
13k views

403 Forbidden problem with Apache

Strange, I have change folder users/groups to www-data (sudo chown -R www-data:www-data /datos/www) and also have changed permission to 755 (sudo chmod -R 755 /datos/www), but still getting 403 ...
Bakhtiyor's user avatar
  • 12.3k
1 vote
1 answer
3k views

XAMPP VirtualHost in Other Directory 403 Forbidden Error

I have created a virtualHost setup according to this website: https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu This part of the setup apparently ...
Craig Morgan's user avatar
1 vote
2 answers
18k views

Forbidden - You don't have permission to access / on this server

if I do it this way: it works DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www> Options Indexes ...
user987055's user avatar
1 vote
1 answer
613 views

Invalid redirect not defined on Apache2 vhost

Say I have the following Vhost definition in Apache2 <IfModule mod_ssl.c> <VirtualHost *:443> ServerName dummy.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html/...
Lelio Faieta's user avatar
1 vote
1 answer
3k views

Forbidden: Unable to access VirtualHost URL in Ubuntu

I just create new virtual host from path /media/rahul/142E875C2E873630/xampp/htdocs/ that's the path of my mounted drive in ubuntu. Now when I created virtual host of this url its created successfully ...
Rahul Sharma's user avatar
0 votes
1 answer
1k views

VirtualHost into separate partition or drive

My project path is /media/zarpio/40D41555D4154E92/projects/www/muhammadkhalil/public_html_ci this is ntfs separate partition (drive). I have created virtualhost file given below. <VirtualHost *:...
zarpio's user avatar
  • 343
0 votes
1 answer
5k views

Apache Server Virtual Host not working

I'm having trouble setting up Apache Server. I haven't turned anything off from the default install and I'm trying to enable the functionality for "Virtual Hosts." I would like Apache Server, which ...
MCP's user avatar
  • 123
0 votes
1 answer
422 views

Is it possible to setup multiple Virtual Hosts with one ip/domain?

Is it possible to setup multiple Virtual Hosts with one ip/domain? We have a single domain (example.com) pointing to our server at ip (123.123.555.555). At location 123.123.555.555 we require the ...
Chris's user avatar
  • 123