Skip to main content

Questions tagged [vhosts]

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...)

vhosts
0 votes
0 answers
46 views

Why does my xampp server download index.php instead of accessing the local website? [duplicate]

I downloaded xampp on Linux Ubuntu 24.04 LTS I configured the vhost correctly I configured the Linux hosts file and also the httpd.conf file I adjusted the permissions of the htdocs folder but when I ...
user278003's user avatar
1 vote
1 answer
31 views

Nginx redirect location to an external host, while keeping subpath, method and headers

I am trying to do a permanent redirect from a subpath location on a original server (https://my-server1.com/api/old/subpath) to the root of an external host while keeping the subpath (https://my-...
bolino's user avatar
  • 972
0 votes
1 answer
99 views

How do I eliminate a nginx too many redirects error?

I am getting a redirect error im not sure how to fix. The error is; ERR_TOO_MANY_REDIRECTS Heres my host file on nginx. Any advice appreciated. Thanks. # HTTP server { server_name _; # I added ...
Hawk007's user avatar
  • 31
1 vote
0 answers
52 views

PHP Apache problem with redirect URL - htaccess

I have a problem on my Laravel project using Apache. I am trying to access some network shared folders this way: $directory = "\\fileserver\public\office\technology"; $items = scandir($...
Cressi's user avatar
  • 11
0 votes
2 answers
200 views

Laravel Octane with Swoole HTTPS configuration apache vhost proxy error

I'm trying to setup SSL for my Laravel 11 website in which is running through Laravel Octane. I'm using swoole, have generated a let's encrypt ssl certificate and set swoole.ssl to true in my octane ...
Ryan H's user avatar
  • 2,856
1 vote
1 answer
35 views

Apache Alias and proxy pass in the same domain

I have a issue with vhost configuration in Apache/2.4.58 I have a NodeJs frontend and laravel api backend. This is my vhost: <VirtualHost *:443> ServerName backend.mydomain.com ...
fabrix's user avatar
  • 31
0 votes
0 answers
14 views

Allowing client domain to point to my domain

I'm currently using Plesk which is running a nodejs app. I'd like to enable users to point their domains at mine eg: client.clientsite.com -> client.mysite.com My extra nginx file looks like so: ...
DannyH's user avatar
  • 97
0 votes
0 answers
13 views

Expressjs vhost manager

I need to find a way to manage subdomains using code. For exemple, I want to have an API on mydomain.com that will manage running vhost. A request to API.mydomain.com/create would create vhost for a ...
Alex Dev's user avatar
0 votes
1 answer
27 views

How to redirect part of url to new domain by nginx

I want to redirect part of old url to new url by nginx. https://server1.com/app1/app2 to https://server2.com/app2 https://server1.com/app1/app2/link1 to https://server2.com/app2/link1 https://server1....
BasicCoder's user avatar
  • 1,683
0 votes
0 answers
16 views

What variables are available for apache vhost template?

I'm using the cwp server to manage my centos 7 machine. In template files for apache vhosts I find such variables as %domain_idn% %user% but nowhere can I find a list of available variables (I'm ...
Dzseti's user avatar
  • 447
0 votes
1 answer
123 views

Apache will not proxy to a node.js backend

I have an apache server running on Ubuntu, and it runs without issue. Apache currently serves static webpages, and is configured with several Vhosts. The problem is trying to configure a Vhost to ...
Isaakfire's user avatar
0 votes
1 answer
190 views

Vhost docker website resolves with port at the end but nginx 502 error without it (recv failed Connection reset by peer)

It's an email server that everyone else seems to be getting running with the same settings. For some reason it's not working for me, and none of the previous answers for "502 nginx docker" ...
MaximilianKohler's user avatar
0 votes
0 answers
49 views

My WordPress page dies if I remove the port in the URL (Ubuntu Server)

I have a problem with my WordPress page in which, as it appears in the title, if I remove the port from the URL, my page dies. To explain better, it is something like this: www.MyPage.com:8091 (the ...
Josh's user avatar
  • 1
0 votes
0 answers
13 views

How to add Vhosts for rails application

I'm trying to have differents vhost for a rails application (7.0) I added this lines in /etc/apache2/extra/httpd-vhosts.conf <VirtualHost *:80> RailsEnv development ServerName bz.dev ...
Ben's user avatar
  • 700
0 votes
0 answers
34 views

Serve alternative Apache Directory based on cookie

I have two distinct folders (htdocs and htdocs2) and I would like to serve files from either the first one or the second one based on the value of a cookie. I tried the following: <If "%{...
Aldo's user avatar
  • 559

15 30 50 per page
1
2 3 4 5
68