Questions tagged [virtualhost]
Questions about using Apache to run multiple domains or websites on a single server.
228
questions
0
votes
0
answers
22
views
How to Install WordPress and Magento2 in ubuntu 22.04 using apache2?
I hope you can understand what i am going to ask you, about installing two applications in ubuntu using apache2, I installed Magento2 in var/www/html/ and I want to install WordPress on var/www/...
1
vote
1
answer
223
views
Apache v2.4 is serving HTTP over port 443 aka enable https in apache2 with vhosts
I am running into this trouble on Ubuntu 20.04.
It looks a lot like a number of similar ones but, after hours of attempts it turned out it is not the usual one.
I used certbot --apache to add HTTPS to ...
0
votes
1
answer
69
views
Ubuntu Apache2 main DocumentRoot doesn't change
I've made a test machine with a basic MediaWiki install. Now I want to go to the Wiki with just the IP address and not having to type IP/MediaWiki. If I go to the IP address it shows me the Apache2 ...
0
votes
1
answer
41
views
Cannot create a virtual host for local ip address
I am running a GitLab instance on my local machine in http://127.0.0.1:180/ IP address. However, I would like to access to Gitlab by gitlab.local. To do so, I edited the /etc/hosts file as follows
127....
0
votes
0
answers
41
views
virtual host2 returning data from virtualhost 1ubuntu 22.04 / apache
pls. I have on apache server disabled default host (a2dissite 000-default.conf). I had at first installed virtual host1 for 1st domain and all has been working. After I set up 2nd host for 2nd domain (...
1
vote
1
answer
514
views
Can't get multiple PHP versions to work (PHP7.4-FPM and PHP8.2-FPM)
I am using Ubuntu 22.04 with Apache2. I can't get both PHP versions to work. When I access a site I have configured with PHP 7.4, only shows 8.2. I have searched and tried things but I can't get it to ...
2
votes
1
answer
69
views
Rejecting requests to subdomains not explicitly configured
I am hosting a couple of site on my apache:
domain-x.com
domain-y.com
test.domain-y.com
Each site has its own file in sites-available. Domain-y serves to sites, one with domain-y.com and the other ...
0
votes
0
answers
71
views
Unable to reach site via apache virtual host
I am trying a lot by configuring my apache configuration to have virtual hosts for external and internal use.
The public virtual host is used for nextcloud and the internal virtual host should be for ...
0
votes
1
answer
566
views
Virtual host alias doesnt work but localhost:80 does
Im trying to set up virtual hosts via apache2 on WSL2.
I have my webpage working properly by http://localhost:80 but not under http://myalias.local
I have positive response for ping myalias.local in ...
3
votes
1
answer
4k
views
Apache virtualhost port 443 serves content from port 80 configuration
I'm running Apache 2.4.52 on Ubuntu Server 22.04.
I'm trying to run https through port 443, eventually aiming to have a redirect from port 80 to force content on https. However, Apache seems to be ...
0
votes
1
answer
249
views
Apache Virtual Hosts - Linking to same website
I set up two Apache Virtual Hosts for my two forums. When visiting one of them, it links to the root domain page.
Here is my first virtual host
<VirtualHost *:80>
ServerName krypt.fun
...
0
votes
0
answers
45
views
Local Server throws 403 after reinstalling KDE Desktop and SDDM
Systeminfos:
Ubuntu 22.04
KDE-Plasma-Version: 5.24.6
KDE-Frameworks-Version: 5.92.0
Qt-Version: 5.15.3
Kernel-Version: 5.15.0-10048-tuxedo (64-bit)
During a system cleanup, I seem to have uninstalled ...
1
vote
1
answer
281
views
Nginx virtual host does not work after erasing Ubuntu 16.04 LTS and installing Ubuntu 22.04 LTS
I had set up an nginx virtual host serving an angularjs SPA whose entry file is index.html on my Ubuntu 16.04 LTS pc, working just fine.
After doing a format and installing Ubuntu 22.04 LTS, (and ...
0
votes
2
answers
347
views
Fingerprint conflict on virtual cluster server
I created three virtual machines (Ubuntu server 22.04 LTS), one for control and two nodes. Control is working fine, I can access it, however when I try to access node1 I get this error:
@@@@@@@@@@@@@@@...
0
votes
0
answers
15
views
Permissions changed after vhosts setup
I have running php project on Ubuntu 20 , After having configured for it apacher vhosts , the permisssions of the folder and its content has changed and become not writable ,
How can I prevent this ...
1
vote
0
answers
187
views
Virtual machine (running on Ubuntu Server 20.04) disk space rezise
I want to know if I create a VM from my VMWare vSphere with 500GB disk space. Then I install Ubuntu Server 20.04 on it. In future, will it impact or cause my Ubuntu fail to boot if I reduce the disk ...
0
votes
0
answers
366
views
Virtual host in Apache redirects to internet ( 301 error)
I have one wm with ubuntu 18.04 and one network adapter set to NAT.
I have setup a virtualhost I created servidorweb.orange.sergitorres.com.conf in sites-avalaible and enabled using a2ensite.
Apache ...
0
votes
1
answer
228
views
set htpasswd to ask for credentials everytime
Is it possible to configure your .htpasswd file so that it asks for your credentials every time? Right now it only asks initially but I want it so that it asks every time the browser is reloaded.
my ....
0
votes
0
answers
47
views
AJP configuration fails
I am trying to connect to a TC app with the virtual host below. The TC app works directly mysite.net:8080/mysite and serves the entire site from index to compute. However the configuration just gives ...
1
vote
0
answers
3k
views
Apache, SSL, LetsEncrypt, Ubuntu: Custom Domain with Sub Domains & SSL
Original Post at bottom
How to setup Apache 2 with SSL certificates via Let's Encrypt on Ubuntu 20.04 LTS using a custom domain with sub domains (a short guide by a guy who took too long to do ...
2
votes
1
answer
2k
views
Not Found The requested URL was not found on this server
This is how my virtual hosts the-square.local.conf looks:
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port t>
# the server uses to identify itself. ...
0
votes
0
answers
124
views
How to configure Reverse proxy for nodejs project and virtualhost for wordpress project
My Objectives:
I want to run the main website like http://dev.abc.com, which is a Node.js project. I ran the app.js through pm2 and configured the reverse proxy in virtual host in Apache which is ...
0
votes
0
answers
246
views
Unable to Install Windows 10 guest OS in Ubuntu 20.04 host using Virtualbox
I used to work with Windows 10 guest OS in Ubuntu host machines using Virtualbox. Recently I bought a ASUS Zenbook (UX325EA-EG701TS).
I installed Ubuntu 20.04.2 LTS on it and installed Virtualbox 6.1. ...
0
votes
0
answers
526
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
1
answer
472
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
1
answer
1k
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
1
answer
544
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
1
answer
1k
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
1
answer
200
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 [email protected]
ServerName cicles....
0
votes
1
answer
4k
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
0
answers
5k
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
1
answer
194
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
0
answers
96
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
1
answer
992
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
0
answers
129
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 ...
1
vote
1
answer
428
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
0
answers
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
1
answer
601
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
0
answers
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
3
answers
5k
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
1
answer
2k
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
1
answer
845
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
0
answers
1k
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
0
answers
1k
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
1
answer
327
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
1
answer
67
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
2
answers
390
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
0
answers
169
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
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 ...
1
vote
2
answers
15k
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....