Questions tagged [apache-virtualhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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
31 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
33 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
28 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
0answers
60 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
19 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
14 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
8 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
8 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
57 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
0answers
7 views

Log file per specific `Location` in apache2

Is there any way to get log files for a specific Location? In the ideal case, I would like to have an apache2 configuration, something like this pseudo config: <vhost xyc> ErrorLog general.log ...
0
votes
1answer
51 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 ...
0
votes
0answers
18 views

How to filter out requests based on the following scenario on RHEL server in Apache

On RHEL serverI have an app (WAR) deployed on Tomcat. The Apache on this server is configured in such a way that all requests (http or https) are getting forwarded to tomcat. For example, let's say ...
1
vote
1answer
31 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
114 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
108 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
31 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
362 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
27 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
18 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 ...
0
votes
0answers
15 views

How to redirect/proxy some ports to different server (Apache2)

I have two servers with Apache2 installed: Server 1: Running Apache2 on ports 80 and 443, virtualhost foo.example.com Server 2: Running Apache2 on ports 80 and 443 and another server on port 25565 I ...
0
votes
0answers
39 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 ...
0
votes
0answers
17 views

apache2 virtualhost config ip resolving DNS etc/hosts

I am setting up my first apache2 server in a VM based on Ubuntu server. This is my hello.bla.la.conf: <VirtualHost *:80> ServerName hello.bla.la DocumentRoot /var/www/html/public_html ...
0
votes
0answers
28 views

Setting multiple subdomains to work over HTTPS on Apache

I would like to have 2 subdomains, where one subdomain would be for connecting to Docker registry on that domain and one subdomain for application that will be runned on that Docker registry. What I ...
1
vote
0answers
32 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
79 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
18 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
65 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
38 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
46 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
241 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
186 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
2k 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 ...
0
votes
0answers
20 views

Second Domain in multi Virtual Host Configuration not working

I am running a DigitalOcean VPS with Debian 10, Apache 2.4.38, PHP 7.3.4-2 and MariaDB 10.3.15. Port 22, 80, 443 and 3306 are open. I want to run two websites on this server using virtual host ...
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
981 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
978 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
49 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
0answers
529 views

Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service”

I am trying to install Devstack but it stopping in the middle Currently trying to install openstack, but the long process of individual installation, so am using devstack, however i already install ...
0
votes
1answer
197 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
315 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
46 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
370 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
1k 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
4k 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/ ...
0
votes
1answer
48 views

Adding .htaccess to Wordpress results in 500 Internal Server Error

I am moving a Wordpress site to a new dedicated host. I have managed to move the assets and import the wordpress database. I update the wp_options to the tempory domain name (until I'm ready to make ...
0
votes
1answer
18 views

Virtualhosts not resolve for Apache

I have a website in /var/www/statgenerique5. I have added the following to the /etc/apache2/sites-available/statgen5.conf <VirtualHost *:80> ServerName statgen5.local ServerAdmin webmaster@...
1
vote
1answer
81 views

redirecting traffic via .htaccess or VirtualHost .conf fails with https on centos 7 multisite server

I have a Centos 7 server configured for multisite web hosting. One of the things I'm trying to do with this server is redirect traffic to old subdomains to subdirectories on our primary website. The ...
1
vote
1answer
1k views

Apache redirect certain url or subdomain to internal ip

I have a gitlab server next to my web server running on my home network. On my web server I run Apache2 with some domains. One of them is example.com. Now my aim is that the user receives the gitlab ...
0
votes
1answer
720 views

How do I configure a Vagrant virtual machine with a host name?

I'm trying to use Vagrant to set up an Ubuntu/Apache virtual machine using Virtual Box on a Windows 10 host, and then configure my host machine so that opening the URL magento.dev in my browser pulls ...