Questions tagged [virtualhost]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
846 views

Set Self Signed Certificate for single VirtualHosts

I generated a self signed cert for my local development server, following this guide https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-...
Simone Conti's user avatar
0 votes
0 answers
83 views

New domain on Ubuntu LAMP stack connected to another website

I purchased bardhakryeziu.com and tried to create new virtual host on apache2. What I did was I copied the conf file of my own website amirrami.com and just changed the values. Now I have no idea what ...
Amir Rami's user avatar
  • 101
1 vote
1 answer
2k views

How to get rid of port from url

I'm getting frustrated how to run my wordpress dev environment without port in URL. At best I would like to use virtual host like "mysite.com". I am on Ubuntu and using Docker to run wordpress ...
Tomáš Vavřinka's user avatar
1 vote
0 answers
256 views

How do I install and setup phpMyAdmin on a LAMP Droplet with Virtual Hosts

I am trying to add phpMyAdmin to a droplet/server from Digital Ocean, I am trying to follow this tutorial the tutorial is written for Ubuntu 16.04 I run 18.04. I have currently Installed LAMP stack ...
Christian Lauridsen's user avatar
0 votes
1 answer
360 views

Can I host two sites, one domain based and on ip based, on the same apache server?

Am trying to host website example.com on my current Ubuntu server. I have created the directories for it: /var/www/html/example.com/public_html and within sites-enabled I created example.com.conf &...
Daniel Kaplan's user avatar
0 votes
0 answers
27 views

apache2 not starting - even after reinstall - on Ubuntu 18.10

So I messed up my virtualhosts, and I did something that somehow broke my whole apache2 install. It wasn't starting, so I copied /var/www to ~/www and all of /etc/apache2/sites-available to ~/www too. ...
Dan Humphreys's user avatar
0 votes
1 answer
60 views

SW recomendation - a tool to admin apache localhosts and mysql database/users?

I need software recommendation - a tool to admin apache virtual hosts and hosts file and probably mysql database creation(not most impotant) and probably mysql users with access to it (all sites ...
LeonidMew's user avatar
  • 2,734
2 votes
1 answer
6k views

Apache configure virtualhost SSL certificate. This site can’t be reached

I am trying to configure apache virtual host for ssl. mywebsite.conf <VirtualHost *:80> ServerAdmin [email protected] ServerName mywebsite.com ServerAlias www....
Ante Ereš's user avatar
0 votes
1 answer
128 views

DNS Redirection issue

Well, I am lost... I was trying to transfer my WordPress server (on Ubuntu 18.04) from Azure to AWS. I used ManageWP to do this, but had issues with logging in. So I created a new blank WordPress ...
Ivar Hyngstrom's user avatar
0 votes
0 answers
3k views

WebSocket connection to 'wss://test.example.com:8090/' failed: WebSocket opening handshake timed out

I am using https and websocket connection for Laravel project. I have setup virtual host like following: <VirtualHost *:80> ServerName test.example.com ServerAdmin test.example.com ...
Test User's user avatar
0 votes
1 answer
453 views

Virtual host pointing to wrong site

I have two sites on the same server configured using virtual host. Site 1 has SSL enabled, while site 2 is non-SSL. Whenever, I change the url of site 2 to HTTP to HTTPs, it will direct me to Site 1. ...
Xavier's user avatar
  • 11
1 vote
1 answer
214 views

How to create a virtual host in other partition ubuntu 18.04?

I have a partition of /media/ramesh/Backend. I created a folder in this partition and added a virtual host as follows: Step 1: I created a conf file by this code sudo nano /etc/apache2/sites-...
Ramesh KR's user avatar
  • 121
-1 votes
1 answer
1k views

Local domain is Pinging but not opening in the browser

I have setup local domain for example like this mydomain.test Whenever I ping this domain I receive the following 64 bytes from localhost (127.0.0.1): icmp_seq=87 ttl=64 time=0.028 ms 64 bytes from ...
Samy Massoud's user avatar
0 votes
1 answer
14k views

Connection refused for Apache virtual hosts on local dev setup [duplicate]

I needed to setup a local LAMP with a specific version of PHP (7.1). On a brand new install of 18.04, I first installed Apache and MySQL. Then I followed this guide to install PHP from ppa:ondrej/php ...
user126440's user avatar
0 votes
1 answer
2k views

Pointing 2 subdomain on same ip but I want it both to work in different directory

I've 2 sub domains both are pointing on same ip and server and currently pointing to /var/www/html as root but I want one of them to point in subdirectory like /var/www/html/anothersub : So I created ...
Mohit Bumb's user avatar
3 votes
2 answers
4k views

How to set Apache virtual host correctly for Drupal 8

I installed the Drupal website in this path: /var/www/html/testdrupal.localhost/public_html/drupal/web Below I show the virtual host configuration file testdrupal.localhost: <Directory /var/www/...
Alessio Frabotta's user avatar
3 votes
2 answers
11k views

dedicated PHP version per virtual host

I have an Ubuntu 18.04 LTS Server with PHP7.2 and PHP5.6 installed. Two Virtual Hosts so far are configured alike: <VirtualHost *:80> # domain: php56.test # public: /var/www/php56/ ...
user870384's user avatar
2 votes
1 answer
5k views

Apache Virtual host not working for www domains

I am trying to redirect to access the site with url: www.example.com but it is giving me 403 forbidden. site works with example.com , https://www.example.com https://example.com here is my virtual ...
InspiredCoder's user avatar
0 votes
1 answer
461 views

HTTPS configuration, SSL

I'm currently configuring LibreNMS with HTTPS, and have followed this guide for setting up HTTPS: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-...
Tobias Larsson's user avatar
0 votes
1 answer
468 views

Website Redirection Occurs: Separate Hosting servers and domain names on different ports 80 & 8080: How to resolve?

Question: I have two servers running ubuntu server with both on the same physical host virtual server but are completely separate virtual machines (ubuntu servers). One is hosting my WordPress site ...
CorpCaleCeo's user avatar
1 vote
1 answer
1k views

MULTIPLE DOMAIN ON A MAIL SERVER AND WEBMAIL

I have a mail server on ubuntu 16.04 with postfix and dovecot and in the same server run roundcube webmail. I access a roundcube webmail with https://webmail.domain1.com (ssl). I need multiple ...
Luis C's user avatar
  • 11
0 votes
1 answer
3k views

Ubuntu 18.04 running slow on vbox (Gaming PC)

I have a gaming pc (windows 10) with: GPU: 4 gb (nvidia GTX) CPU: 8 cpu's , 16 gb of ram (Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz) To try to make ubuntu faster i've changed the settings of vbox so ...
K_dev's user avatar
  • 249
4 votes
1 answer
33k views

There is no sites-available/000-default.conf in /etc/apache2

I'm trying to set up virtual hosts for Apache2. There are tons of tutorials, but they all presume that the file /etc/apache2/sites-available/000-default.conf is there. But if I run: $ cd /etc/apache2/...
lungov's user avatar
  • 43
2 votes
1 answer
1k views

Server Redirecting To First Website

I have been unsuccessfully trying to set up Ubuntu Desktop 32bit in Virtualbox as a name based virtual host. The ip address of the virtual host is 192.168.0.105. The document roots are /var/www/...
Nazmul's user avatar
  • 21
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
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
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
2 votes
2 answers
3k views

Ubuntu 16.04 landscape keeps redirecting to wrong url

So I installed Landscape on an ubuntu 16.04 server. The hostname of the server is: http://management.domain.com/ Everytime i try to access landscape by going to: http://management.domain.com/ It ...
Stan Vanhoorn's user avatar
0 votes
1 answer
2k views

How To Set Up second Apache Virtual Hosts on Ubuntu

I have one virtual host but when i make second one and going to check ping its goes to first one website, and when check in browser its says 404 not found, but first one works fine.
Anirban Ghosh's user avatar
4 votes
4 answers
35k views

Apache Virtual host not working

I followed this tutorial to set up Apache virtual host, but browser is unable to serve the homepage. Here is my .conf file <VirtualHost *:80> ServerAdmin [email protected] ServerName ...
Asad Hayat's user avatar
0 votes
1 answer
547 views

My domain forwards to www.www.www.domain.com

In ubuntu server 16.04 I have a wordpress site and I want to link it with a domain name. I set up the DNS records in vutlr and then I set up also the Virtual hosts in my server However, when I type ...
yaylitzis's user avatar
  • 731
0 votes
1 answer
116 views

Do i need DNS if i just plan to use my api server with ip address

I am planning to use my api server without domain name. I am just planning to use http://ip_address/user/ , http://ip_address/user/update/1232 Do i need DNS? Do i need any special config file in ...
Mahesh's user avatar
  • 263
0 votes
0 answers
302 views

How can I make configuration changes permanent?

I need to change document root in my server. I do that by opening this file: nano /usr/local/apache/conf/httpd.conf Changing this: <VirtualHost 46.165.242.228:80> ServerName pronexo.net ...
stack's user avatar
  • 581
0 votes
1 answer
109 views

Virtual Host Displays Two out of Three Sites

I have setup apache2 to use three domains. They are pointed correctly and I have setup the sites-available config files as the following: Here is hfd-server.domain1.com, this one displays the default ...
Harley Frank's user avatar
-1 votes
1 answer
599 views

virtual host preventing default server

I have a home server I use for development and something I'm battling is sometimes I enter one url and it loads the wrong website, for example: https://dev.demoapp.com => https://dev.demoapp.com (...
Eman's user avatar
  • 185
0 votes
0 answers
358 views

Apache2 vhost redirects https ubuntu 17.04

I run Virtualbox with ubuntu server 17.04 and it does this redirect to SSL/https when I try to access the local project in the browser <VirtualHost *:80> ServerAdmin [email protected] ...
joostdelange's user avatar
0 votes
1 answer
66 views

make different content between domain and IP Server [duplicate]

I have Ubuntu 14.04 Server with Apache. All I want if people enter to server IP like x.x.x.x forward to DocumentRoot /var/www/site1/html And if enter to my domain address like site.com forward to ...
mahdi's user avatar
  • 3
0 votes
1 answer
897 views

Virtual host issues

I have an ubuntu server hosted on Linode with a lot of sites in the /var/www directory. I've got 2 registered domains(preplogs.com, icerge.com and alot of other sites I access via 8.8.8.8/domain) ...
sisko's user avatar
  • 242
0 votes
1 answer
1k views

What are the differences between mod-wsgi and libapache2-mod-wsgi-py3?

I am learning about virtual hosting. I have a Django project and need WSGI module. Reading multiple tutorials, I see that people install different packages of mod-wsgi, for example mod-wsgi and ...
Heuyie's user avatar
  • 169
0 votes
1 answer
45 views

What does this mean by site IP or Fully Qualified Domain Name?

I'm configuring a virtual host and the instruction is as follows: edit the new example.com.conf configuration file by uncommenting ServerName and replacing example.com with your site's IP or ...
Krishaan Khubchand's user avatar
0 votes
0 answers
621 views

Bridged network

I've been having a hard time connecting my Ubuntu server to the WiFi. Here's the situation. I have a windows 10 as host and the Ubuntu as guest in virtaualbox and I istablished a connection between ...
Mosaid.Abdo's user avatar
0 votes
1 answer
636 views

How do I turn a ubuntu server 17.04 into a Virtual Machine Host via command line?

I want to use Ubuntu Servers (Physical Iron) as my Virtual Machine Hosts, what is the correct way to do this with Ubuntu? (In CentOS, you can use centos-xen), but wanted to know what Ubuntu ...
PythonWubiUser's user avatar
1 vote
1 answer
379 views

Virtual Machine Server and Multi Factor Authentication

I have an Ubuntu 16.04 server, I run SSH and a virtual machine server, libvirt. I plan on adding Google Multi Factor Authentication as another layer of security on top of key encryption and other ...
Robby1212's user avatar
  • 880
17 votes
6 answers
86k 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
3 votes
1 answer
15k views

The requested URL not found - in Digital Ocean LAMP Webmin server

I'm new to Digital Ocean & Ubuntu, in the midst of migrating from Exabyte shared server's Codeigniter (v3) website to Digital Ocean server Server details/installation : Digital Ocean Droplet - ...
Mavichow's user avatar
  • 151
1 vote
1 answer
2k views

Apache (Ubuntu) Virtual host stopped working after upgrade->restart

I have a simple webserver with a single virtual host. Domain name have been changed to local.com After running apt-get update && apt-get upgrade && apt-get dist-upgrade the ...
Ronni's user avatar
  • 21
3 votes
1 answer
63k views

Gives Error : "Job for apache2.service failed because the control process exited with error code." for worked virtual host when restarting apache2

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. I was properly working with my project and ...
Shyamali's user avatar
  • 133
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
2 votes
0 answers
45 views

What is the appropriate directory for sites and apps when setting up public multi-purpose home server? [closed]

I'm still very new and green to the Linux world. I'm doing this as a learning experience. I've seen a lot of tutorials that walk you through setting up a multi-purpose home server. They all seem to ...
Jim MacDiarmid's user avatar
0 votes
1 answer
2k views

Apache2 | Virtual Host shows 404

I'm trying to create new virtual host. So I created a new file mrpdf in apache2/sites-available mrpdf file below: <VirtualHost *:80> ServerName supportcenter.sevplcorp.com/mrpdf/Root ...
Maria Jeysingh Anbu's user avatar