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
0answers
22 views

How to figure out why all subdomains are pointing to the one folder in Ubuntu

I have a Laravel PHP & AngularJS web application at IP XXX.XX.XXX.XXX and when I load either the IP or any subdomain it loads the var/www/html/example/application folder. e.g. random.example.com ...
0
votes
0answers
11 views

Apache2 ssl port 443 do not work

I'm trying to execute the a2enmod ssl command and it works, the problem is when I try to restart the apache service, here I leave the mysite.conf files and the result of the journalalctl -xe execution ...
0
votes
0answers
10 views

Multiple Virtual host with Port 443 pointing to wrong directory

I have created two virtual host files on ubuntu apache2 www.example1.com.conf www.example2.com.conf which is working fine with port 80. without https. I have added following code for 443 ...
1
vote
1answer
27 views

how to prevent the access to a website by the IP?

How can I prevent the access to a website by the IP? I have a Dedicated Server with Ubuntu 20.04 LTS and Apache. I want to prevent the access to my website by IP. I would like only virtual hosts to be ...
1
vote
0answers
19 views

Unable to resolve custom hostnames in /etc/hosts [duplicate]

I'm running Apache/2.4.41 on Ubuntu 20.04. I'm trying to setup a virtual host. Neither Chrome nor Firefox are able to resolve hostnames specified in /etc/hosts file. Even before setting up the test....
0
votes
0answers
19 views

How to reduce overall threads amount on Ubuntu 18.04 virtual server?

I use virtual server and faced /proc/user_beancounters numproc limit (651/700). Although RAM, CPU and storage I use not much. Is there a way to reduce threads amount runnning the same prcesses? ...
0
votes
0answers
16 views

Whats the easiest way to install a digital certificate for Apache?

I'm following instructions for manual installation. It calls for editing the virtual hosts section. It all looks good to me but when I run configtest it fails with directive failed missing >
0
votes
0answers
10 views

How to create virtual site on LiteSpeed server?

How to create virtual site on LiteSpeed server? I need to point website. But, don't know about how to create in LiteSpeed server. Can anyone please help me? Thanks.
1
vote
1answer
22 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/...
0
votes
0answers
64 views

Getting ERR_CONNECTION_REFUSED while apache2 runs

I'm having troubles with a virtual host. I'm getting ERR_CONNECTION_REFUSED in the browser. Most answers say it is due to apache2 not running - But in my case it's running, other virtual hosts do work ...
1
vote
0answers
38 views

Problem set up VirtualHost [duplicate]

I am trying to set up virtual hosts on my laptop (Ubuntu 19.10, Apache/2.4.41) for my convenience. I followed this tutorial, with a few modifications to folder paths but I get this error: Unable to ...
0
votes
0answers
29 views

Aliasing to WordPress and redirects to canonical url in virtual host install

I’ve completed a virtual host installation of WordPress on Ubuntu 19.10 with Apache and MariaDB following instructions online. The nature of the installation with multiple sites using one WP package, ...
3
votes
3answers
486 views

Apache virtual host issue or dns issue?

I posted this question before but I guess it wasn't clear the way I wrote it or something. So I deleted it and here it is again with as much info as I can think of. I created a server using old ...
0
votes
1answer
169 views

virtualhost not working in postman but accessible thru CURL

I'm using SLIM framework that I can access using local url: http://localhost:/ but I can't access it thru virtualhost by entering the url: http://dev.slim.com in browser or in postman. It says: ...
0
votes
0answers
42 views

Error: NameError does not exist nginx

Hello i have my nextcloud site in /var/www/nextcloud, with user and group www-data. Using: ubuntu 18.04 with nginx 1.14 server. I created local virtual host nextcloud,aaron.com But when i go in ...
0
votes
1answer
53 views

Where to point the browser to when using Virtual Host? [duplicate]

When using Virtual Host, where should I point my browser to? I'm trying to set up Virtual Host for Example.com. My understanding is that if all good, I have to point the browser to Example.com/...
0
votes
0answers
75 views

Cannot access vhosts on local Ubuntu 19.10 machine

I've created virtual hosts on my Ubuntu 19.10 Desktop machine and I've managed to get as far as accessing my file system in the browser but when I enter the URL of my dev sites I get ...
0
votes
0answers
27 views

How does virtual host dns work?

I would like to host from home multiple website. I already purchased the domain name and it is works if I use a single server (Apache) with 1 domain. To have a multiple domain I created name based ...
0
votes
0answers
329 views

Ubuntu server 18.04, Dynamic DNS w/google domains - mydomain.com resolves, www.mydomain.com does not

My problem is this - I don't know the best way to end-to-end troubleshoot this dynamic dns setup and hosting. Essentially what I want to is use the google domains dynamic dns service to forward http ...
0
votes
0answers
181 views

.htaccess files being ignored by Apache2 on Lubuntu 18.04

My wordpress install is ignoring my .htaccess file. I am running Lubuntu 18.04 locally with Apache2. The root directory for localhost is at /var/www/html and my wordpress project is in that folder ...
1
vote
1answer
30 views

How to forward virtual host to other server?

I have two web servers at home and one external IP. Local IPs on servers is 192.168.1.10 (main server) and 192.168.1.11. On my router I forwarded all 80 and 443 traffic to main server but on my second ...
0
votes
1answer
55 views

Ubuntu(16.04) - virtual Host problem

I used ubuntu 16.04. I configure virtual host in my system and also working properly on local host- using hostname(turboreceiver) and using ip (192.168.0.56). when I try this in my other pc in same ...
1
vote
2answers
278 views

Virtual Hosts of Ubuntu 19.04

I have read several articles and combed over stackExchange, but could not resolve the issue. I have two domain names, and I want to create virtual hosts for each of them. I have created separate ...
0
votes
0answers
30 views

cannot get virtual host to work

Using tutorials.ubuntu.com to install apache and virtual host on 19.04. Get site not found. Error log is looking for /var/www/html/gci. Instructions say /var/www/gci. Are instructions incorrect?
0
votes
0answers
49 views

HTTPS to HTTPS reverse proxying

I have an ubuntu server v 16.04 with apache installed. I want to reverse proxy a web server. To be exact i would like to reverse proxy the OWA of my mail server. Internet users hit the url https://...
1
vote
1answer
863 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 ...
0
votes
2answers
3k views

How to set up domain name and attach it to my server IP address (Apache2)

I have a vps in IONOS with ubuntu 18.04. I have followed this tuto to configure apache , and my new website. Right now , the website work only with ip address but not with domain name. This is www....
0
votes
1answer
325 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-...
0
votes
0answers
20 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 ...
1
vote
1answer
287 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 ...
1
vote
0answers
141 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 ...
0
votes
1answer
96 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 &...
0
votes
0answers
24 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. ...
0
votes
1answer
37 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 ...
2
votes
1answer
2k 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 info@mywebsite.com ServerName mywebsite.com ServerAlias www....
0
votes
1answer
29 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
2k 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
92 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
114 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
324 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
5k 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
679 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 ...
1
vote
2answers
1k 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/...
3
votes
2answers
6k 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
2k 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
214 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
1answer
199 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
593 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
2k 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
11k 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/...

1
2 3 4 5