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
15 views

Apache2 local virtual host doesn't work

I have a new installation of apache2 on ubuntu 20.04.02, but I have a problem with setting a localhosted virtual host: In /var/www/site.local/htdocs I have my vhost folder. Next I set in apache2.conf ...
0
votes
0answers
52 views

How to redirect a domain to an apache app on wsl?

I use WSL2 on windows 10, with ubuntu 20. I have an apache server and a laravel app which I installed at /var/www/law In my windows hosts file I've added this: 127.0.0.1 law.dev ::1 law.dev and ...
0
votes
1answer
44 views

Is there a way to pass the host: value header in a URL for Apache virtual hosts?

I have two virtual host websites on my Ubuntu 20.04 computer outside the regular Apache2 document root. I can access them just fine in my browser on the same computer. I'm trying to also access these ...
0
votes
1answer
148 views

CodeIgniter 4 on Ubuntu 20.04

I have installed my ci4 app in /var/www/html/app directory. Then created codeigniter.conf file in /etc/apache2/sites-available directory and wrote below code *** <VirtualHost *:80> ...
0
votes
0answers
48 views

Virtual host on Apache not working

I set up the following virtual host, but when I write it to the browser it says can't connect to the server. 000-default.conf: <VirtualHost *:80> # The ServerName directive sets the request ...
0
votes
1answer
87 views

Simplest way to “isolate” apache virtual hosts

Which is the simplest way to "isolate" Apache virtual sites, so that a potentially compromised site doesn't affect the other sites or the server? To be clear, I am not interested much is ...
0
votes
0answers
99 views

Apache HTTP ERROR 400 Large request uri on reverse proxy

I've a problem on my sites, that showing error when large request uri, I just checked the characters length about 9248.I've try to solve add syntax to /etc/apache2/apache2.conf LimitRequestFieldSize ...
0
votes
0answers
24 views

Domain for main document root gets pointed to newly enabled subdomain document root

I have a Ubuntu 16.04 which apache2 server is running. I have a website hosted in my primary domain which the document root is /var/www/html. I use Webmin to create a subdomain and I have given the ...
0
votes
1answer
395 views

Redirect all requests to https://www. using Apache on Ubuntu 18.04

I'm using Ubuntu 18.04 with Apache. I have the following in /etc/apache2/sites-available/000-default.conf: <VirtualHost *:80> RewriteEngine On RewriteCond %{SERVER_NAME} =www.example.com ...
0
votes
0answers
103 views

Apache2 : can't change my localhost directory and adding virtual hosts on ubuntu 20.04

I recently added 2 conf for virtual hosts in /etc/apache2/sites-available I also want to change my localhost directory. By default it is in /var/www/html so i tried to change it in /var/www In /etc/...
0
votes
0answers
217 views

Apache virtual hosts on Ubuntu 20.04 VPS

I have a VPS running Ubuntu 20.04 and would like to use it to host CMS installs for my personal projects. I would like to be able to reach every CMS admin interface by entering http://server-ip/...
0
votes
1answer
40 views

Apache Virtual host goes to Internet

I have setup a virtualhost in ubuntu 18.04: I created cicles.almata.com in sites avalaible and ln in sites-enabled. <VirtualHost *:80> ServerAdmin admin@example.com ServerName cicles....
0
votes
1answer
800 views

Vmware - gcc version (null) was not found

I couldn't install my VMware on Ubuntu. Whenever I execute sudo vmware, I receive a popup asking me to choose the version of gcc. However, unlike other errors similar to this, I am faced to choose a ...
0
votes
0answers
890 views

How to enable SSL for virtual host on Apache Server in Ubuntu 18.04 Machine

I am struggling from 3-4 days to create virtual host with different PHP version. I want the main website to run on PHP 7 (I used PHP 7.4) and a subdomain on PHP 5.6. The subdomain site is too old and ...
0
votes
1answer
47 views

BrowserMatch in Virtual Hosts files

We're busy migrating some websites to a new environment, so also transfer the Virtual Hosts files. I see these lines in the Virtual Hosts files: BrowserMatch "MSIE [2-6]" \ nokeepalive ...
1
vote
0answers
70 views

WP Multi-Site Install on Ubuntu 18.04 LAMP Keeps Re-Directing URL

After a few weeks of head banging... I am very near to completing a local development environment for my WP Multi-Site Installation. The final problem that I have (wishful thinking), is that the ...
2
votes
1answer
377 views

How to host a site using apache2 on Ubuntu 20.04 with ip_adress/phpmyadmin accessible

I have a VPS setup with Ubuntu 20.04 and LAMP installed. I could access phpmyadmin then via <ip_address>/phpmyadmin. Later I enabled a virtualhost at /etc/apache2/sites-available/ by adding ....
1
vote
0answers
34 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
73 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
207 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
60 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
20 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....
1
vote
1answer
49 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/...
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 ...
3
votes
3answers
3k 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
715 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
1answer
57 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
639 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
654 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
49 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
60 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
331 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
72 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
2k 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
7k 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
446 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
23 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
1k 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
157 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
161 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
26 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
42 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
3k 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
34 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
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 ...
0
votes
0answers
158 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
138 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
494 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
9k 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
1k 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
2 3 4 5