Questions tagged [apache-virtualhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

How to reverse proxy call in apache

I have a reverse proxy setup as follows in Apache: Server A with address www.proxyserver.com/graphql is the reverse proxy server. (magento - php) It maps to: Server B with address example.com (reactjs)...
1
vote
0answers
12 views

Ubuntu/Apache/Flask - sub-subdomain?

On a fresh install of Ubuntu 20.04, I’ve set up the new server with apache -> MOD WSGI. The configuration of apache recommends that I create subdomains. How will that interact with the fact that ...
1
vote
2answers
83 views

How does Apache webserver is able to detect CNAME

I was quite curious how does Apache web server can detect a subdomain even when all the subdomains point to same IP address, since my understanding is that an IP address that cannot have a subdomain, ...
0
votes
2answers
42 views

http to https redirection preventing redirections to other domains

I have following vhost redirecting 80 to 443: <VirtualHost *:80> ServerName site.mydomain.com ServerAlias www.site.mydomain.com DocumentRoot /srv/htdocs Redirect ...
0
votes
0answers
6 views

Apache2 Rewrite Engine - Possible to still auto-generate index when proxying?

I have an Apache2 server that is serving a mirror of some Ubuntu repositories, and proxying out requests for files that it does not have. However it looks like the proxying is causing the auto-...
1
vote
1answer
32 views

How do I serve *nothing* on a server's bare IP with Apache2 virtual hosts?

I am hosting several project sites on a machine running Apache. Of course I am using virtual hosts and they work as expected. However, currently accessing the bare IP of the machine yields the first ...
0
votes
1answer
20 views

Can Access LAMP over LAN, CANNOT Access Sites

I can view a directory of my LAMP server running on Ubuntu 20.04 over my LAN using my mobile phone's web browser, when I type http://192.168.X.XXX. However, I can not access any of the sites/...
0
votes
0answers
17 views

Use multiple PHP-FPM versions using FastCGI on same Debian/Apache server

I would like to use multiple PHP-FPM versions using FastCGI on same Debian/Apache server. Using: Debian v9.12, Apache v2.4.25, php5.6-fpm, php7.4-fpm, libapache2-mod-fcgid v1:2.3.9-1+b1, libapache2-...
0
votes
0answers
20 views

Nodejs Apache Reverse Proxy HTTPS

I successfully manage to reverse proxy my Node app through a reverse proxy with the below customizations <VirtualHost 190.200.180.50:3333> ServerName messenger.example.com ProxyPass / http://...
0
votes
2answers
20 views

Apache vhost local request

I got 2 sites configured via apache vhost like: <VirtualHost *:443> DocumentRoot /var/www/site1 ServerName www.site1.com ... <VirtualHost *:443> DocumentRoot /var/www/...
0
votes
0answers
19 views

Can I use Alias to redirect / link to another subdomain folder?

I have a VPS with an ISP Manager panel. With domains domain1.com domain2.com domain3.com And subdomains cart.domain1.com cart.domain2.com I need to display cart.domain2.com when opening cart....
0
votes
0answers
29 views

Apache reverse proxy not working

I have installed on a Debian 10 vm utserver (utorrent server for linux), and on the host machine I have an apache instance that, through a reverse proxy, allows to access the utserver webapp through ...
0
votes
0answers
18 views

Home Server Stopped Routing to IP

I have set up an apache server on Debian. I have www.mydomain.com pointing to my home IP for my subdomains. unraid.mydomain.com. This has been working up until about a week ago. Now when I am ...
0
votes
1answer
47 views

Possible running Apache and Nginx independently on same server

Possible running Apache and Nginx VirtualHosts independently on same server. I know they must listen on different ports BUT is it possible to say let Apache independently handle 3 websites while the ...
0
votes
1answer
92 views

Access to webserver behind nginx reverse-proxy from outside fails with SSL handshaking error

I have a setup where there are a number of Apache web servers behind a common Nginx reverse proxy server. But I can not access the web servers from the Internet. The access works fine on my local ...
0
votes
2answers
36 views

Apache redirection http to https

i try to activate redirection for a website, http to https. Content of an .htacces founded RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
0
votes
1answer
802 views

Apache + php-fpm: Proper permissions for per-pool, per-user projects?

What is the correct way to set up Apache virtualhosts and PHP-FPM pools with different users, one user per project, so that each user/project is independent from each other in file access projects ...
0
votes
1answer
21 views

why does proxy reverse included to a single virtualhost configuration via post virtualhost include affect other virtual hosts on same vps

I have created a virtualhost configuration file in the specified directory /etc/apache2/conf.d/userdata/std/2_4/username/sub.domain.com/file.conf (in this example for sub.domain.com.) I have also ...
0
votes
1answer
17 views

transfer .htaccess rewrite to apache vhost configuration

I am using a script that is called every time a special keyword combination is in query string - on all of my domains that are located on my server. I am using .htaccess files on every domain that ...
0
votes
0answers
17 views

How can I enforce HTTP basic authentication on an Apache directory that is an alias?

I'm using Ubuntu 18.04 with Apache 2.4. I have created this htpasswd file ... $ ls -al /etc/apache2/.htpasswd -rwxr-xr-x 1 www-data root 49 Aug 20 20:57 /etc/apache2/.htpasswd I have this in my /etc/...
0
votes
1answer
9 views

Virtual includes with XAMPP

I am running Ubuntu 18.04 with XAMPP 7.3.7.1 for Linux. I have one acct. that uses HTML and so I use <!--#include virtual="/includes/css.html" --> for my includes. The problem is when ...
1
vote
1answer
419 views

certbot does not recognize the added VirtualHost

I'm trying to use certbot to get a certificate for my http server running nextcloud (archarm on a raspi). When I run: $ sudo certbot --apache, I get: $ sudo certbot --apache Saving debug log to /...
0
votes
1answer
119 views

Can't access subdomains on apache

My objective is to create 2 sites site1.example.com and site2.example.com in two VirtualHosts and use /etc/hosts for resolving.The problem is that I can access the main domain example.com but none of ...
1
vote
1answer
69 views

Can I group load-balanced apache http logs on a rsyslog log server by VirtualHost?

I have an array of load balanced app servers (app1-app4) for multiple websites logging to a single log server (log1). I would like the logs on the log server to be grouped by virtualhost so I can see ...
-1
votes
1answer
374 views

Problem with running multiple Websites on Ubuntu Server 18.04 LTS with Apache

I am new to Linux networking. I set up an Ubuntu Server and I use my laptop as a client via SSH. I am trying to host 2 websites on the server but when I test the web pages on my Laptop, they will ...
1
vote
0answers
204 views

Apache fails to load when SSL activated through Pacemaker

I have setup a cluster on Pacemaker holding: apache, mariadb, 2x GFS2, and a VIP Everything was working fine when running on http but as soon as I added the (self-signed) SSL certificate and the ...
2
votes
2answers
49 views

Different virtual hosts (Apache) for different subdirectories?

I want to host a webpage for 150 users. Each user will have a unique webpage by the url url/username/index.html. Here username is unique for all users rest all remains common. So do I need to make ...
0
votes
0answers
660 views

Apache stopped working after update - requests just timeout now - problem with firewalld

UPDATE: I tried rolling back the yum update and it did not resolve the problem. I also tried running the server with only a single virtual host and no SSL and then trying to access site via http. I ...
1
vote
1answer
37 views

Examples of virtual hosts in the Apache manuals

I'm preparing my self for a Linux exam, and I keep forgetting the format of an apache virtual host. At the exam, I am allowed to use the man pages and any documentation from the server, but I'm not ...
0
votes
1answer
19 views

I need to have a subnets on my domain route to 3 different vms im running on my network

Let me start by mentioning that I'm a programmer that has been learning the magical world of networking. I'm not going to begin to believe that all if any of my design decisions have been entirely ...
1
vote
0answers
179 views

Apache vhost_alias - how to set user per virtualhost?

For context: I'm using a Debian or Ubuntu server with Apache 2.4, PHP 7.2 and a number of other things, to set up a development and testing environment for devs and technicians to use at work. I've ...
1
vote
0answers
47 views

CentOS subdomain not working

I'm trying to create a subdomain in my CentOS server but it's redirecting to the main domain name Here is my virtual host NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.co.uk ...
0
votes
1answer
271 views

Apache proxy reverse to webmin (CentOS 7)

I have a CentOS7 virtualized in my testing homelab. I installed webmin along with Apache webserver and I can reach the webmin login page through the CentOS machine IP address on port 10000 (https). ...
-1
votes
1answer
19 views

I broke access logging for Apache Virtual Host. So weird - help

I had an access log that I wanted to save and then clear the original one. I renamed the access.log and then created a new access.log with the same permissions. No logging. I restarted Apache2 a ...
0
votes
1answer
81 views

No multiple *.onion domain possible

I have some problems with adding a second *.onion address. I added following: HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80 HiddenServiceDir /var/lib/tor/...
0
votes
1answer
41 views

Apache: 2 SSL certificates, same DocumentRoot

I have my site configured on apache and now I'm trying to set up re-directions correctly. My site uses wildcard SSL certification and my ssl certificate covers *.mydomain.com. My certificate provider ...
1
vote
2answers
59 views

Avoid Public IP based browsing of website in Apache 2.4

We are hosting a website locally. For this purpose, we have a public IP and corresponding DNS entry. We are using Apache 2.4 web-server. The website is publicly accessible without any problem. But ...
0
votes
1answer
703 views

Apache 2 Virtual Host allow serving all files from a directory

I have an Apache 2 server installed on my Debian system. The Apache listens on port 80. Then I have a simple nodeJS server listening on port 8080. I want to use the Apache as proxy for the nodeJS ...
0
votes
0answers
492 views

Which server name should one use for ServerName apache config?

Which server name should i use for ServerName apache config if i am hosting multiple subdomains on the same host. Trying to get rid of this warning in the /var/log/apache/error.log file AH00558: ...
1
vote
1answer
4k views

Apache/2.4.18 (Ubuntu) Server is not working with RewriteEngine mode by .htaccess for specific folder

While I am working with Web API project with Slim, I was using .htaccess for API folder /v1 under root web. My OS is Ubuntu 16.04, with Apache/2.4.18. I wanted to apply the .htaccess only for the /v1 ...
1
vote
2answers
23 views

Apache2 and domain control

I have a question. If I make an A record pointing to an Apache2 server, and make some virtualhosts with subdomains. Can I then access the subdomain without making another record?
0
votes
1answer
2k views

CentOS 7 Linking sites in Apache conf folders without using a2ensite and a2dissiste

I'm following this guide to create virtualhosts in my server, but my apache is running on CentOS 7, and I do not have the a2ensite command required at point 5. What's the equivalent centos command ...
1
vote
2answers
1k views

Apache 2.4 with self-signed certificates always redirect to the default virtual host

I've been trying to make work virtual hosts with self-signed certificates with Apache 2.4. I've tried many setup combinations but no matter what, every virtual host I try in Firefox goes straight to ...
0
votes
1answer
57 views

How to host webserver with domain name? [closed]

I bought a domain with Namecheap and want to host the server by myself but with the domain name. How do I do this? Whenever I search on Google I only get useless results telling me things I don't ...
0
votes
1answer
401 views

Redirect all non-root routes to index.html on Amazon Linux 2 and Apache

An Amazon Linux 2 instance is using Apache to host an Angular 7 app. The Angular 7 app includes not just index.html, but also several .js files and a subdirectory named assets. What specific ...
0
votes
1answer
457 views

Apache server giving 403 Forbidden for IPV6 addresses?

We have an Apache server running, where it serves well any IPV4 address, but all access from IPV6 is blocked with "403 Forbidden". Any possible most likely causes to that? EDIT Thanks for the ...
0
votes
2answers
51 views

403 frobidden when trying access apache / directory

I am trying to run my first PHP code on my desktop Linux. I installed httpd on my pc and changed these things: Changed document root to /home/MyUserName/httpd/www Changed default port to 8080 I ...
0
votes
0answers
448 views

Configure virtual host for custom directory

I have a web application installed in '/var' in a folder called 'myapp' in a CentOs 6 vps, and i have a sub-domain that points to the server IP, and i need that sub-domain to point to that '/var/myapp'...
0
votes
1answer
2k views

Redirect on the same port from http to https with nginx reverse proxy

I have a website setup http://mydomain.com/myroject on ubuntu 14.04(apache webserver) I setup htsql service on the same host to run on port 5000 working links: http://mydomain.com/myproject http://...
3
votes
1answer
6k views

How to configure “https” in same domain for multiple ports?

I have a website(apache web server, ubuntu 14.04) setup http://example.com and configured with ports 1996 and 1980. These links works with http http://example.com/myproject http://example.com:1996/ ...