Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [virtualhost]

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

0
votes
1answer
19 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 ...
0
votes
0answers
59 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 ...
0
votes
0answers
24 views

Getting 403 on VirtualHost rewrite

I've spent about 16 hours researching and attempting to fix this, and i just had to rebuild the server because i mangled it so bad...so I'm finally searching for some assistance. I have a Deluge ...
0
votes
0answers
22 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. ...
1
vote
1answer
19 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-...
-1
votes
1answer
34 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 ...
0
votes
1answer
389 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 ...
0
votes
1answer
61 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 ...
0
votes
0answers
26 views

Getting Unknown Host error after Virtual Host creation on Ubuntu 16.04 Desktop

After adding following line to 000-default.conf Listen 80 <VirtualHost *:80> ServerAdmin webmaster@drupal8 ServerName drupal8.local ServerAlias www.drupal8.local DocumentRoot /...
0
votes
0answers
115 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/...
1
vote
2answers
794 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/ ...
1
vote
1answer
247 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 ...
0
votes
1answer
49 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-...
0
votes
0answers
118 views

Ubuntu 18.04 Virtual Hosts not affecting properly

I have 2 Virtual Hosts with apache configs as below. Obviously the 2nd VH config called l****c has a different server name etc, but the rest is identical. <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
53 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 ...
1
vote
1answer
297 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
2k 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/...
2
votes
1answer
40 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/...
2
votes
1answer
174 views

Creating additional virtual host Ubuntu Server 16.04.3

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 ...
1
vote
2answers
4k 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 ...
1
vote
2answers
1k 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/...
2
votes
2answers
380 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 ...
0
votes
0answers
155 views

500 Internal Server Error after installing Zend framework on Ubuntu

I face a error on Apache2 on Ubuntu. I installed apache2 and Zend Framework with Composer. After the I made a virual host as following, I faced a 500 internal Server error. ServerName zfapp....
0
votes
1answer
1k 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.
0
votes
4answers
2k 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 webmaster@ednet.dev ServerName ...
0
votes
1answer
218 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 ...
0
votes
1answer
55 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 ...
0
votes
0answers
37 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 ...
0
votes
1answer
46 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 ...
-1
votes
1answer
381 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 (...
0
votes
0answers
229 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 admin@example.host ...
0
votes
1answer
42 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 ...
0
votes
1answer
86 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) ...
0
votes
1answer
213 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
274 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 ...
0
votes
1answer
353 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 ...
0
votes
1answer
227 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 ...
10
votes
6answers
21k 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 ...
3
votes
1answer
9k 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 - ...
0
votes
1answer
1k 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 ...
2
votes
1answer
24k 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 ...
1
vote
1answer
2k 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 ...
3
votes
0answers
39 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 ...
0
votes
1answer
927 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 ...
0
votes
1answer
38 views

I set up a an apache2 virtualhost but now I cant seem to access my /etc/var/www/ files?

I think this is due to me pointing my /etc/hosts file to 127.0.0.1 mysite.com But there isnt really another way of pointing my virtual host to the localhost? My host file looks like: 127.0.0.1 ...
1
vote
1answer
213 views

2 network interfaces but can't access server publicly

I have Ubuntu 16.04 and 2 Network Interfaces. Workers can't access this server from internet only accessible LAN. My second network card configure with static ip address. Subdomain redirect to this ...
0
votes
1answer
655 views

Apache2 virtual host not working. “DNS adress cant be found”

Trying to add a virtual host test.mysite.se. I've followed all the steps here: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 I didnt encouter any ...
1
vote
1answer
329 views

run apache on specific 192.168.1.x host , using local host dns

I try to run apache on a specific "192.168.1.x" address, using a localhost dns server (nameserver localhost in /etc/resolv.conf). If I do dig @localhost www.mywebsite.com, the name resolves to 192....