Субдомен указывает на то же место, что и обычный домен. ⇐ Apache
-
Anonymous
Субдомен указывает на то же место, что и обычный домен.
My webserver is serving both a static website through Apache, and a Node.js application.
I am trying to configure Apache to make my Node.js application available through subdomain.mydomain.com, with the following VirtualHosts:
ServerName subdomain.mydomain.com ProxyPass / http://localhost:8000 ProxyPassReverse / http://localhost:8000 ServerName subdomain.mydomain.com ProxyPass / https://localhost:8000 ProxyPassReverse / https://localhost:8000 While leaving the static website available at mydomain.com. These rules worked fine for hosting the Node.js app at a subdirectory, but now that I have changed them going to subdomain.mydomain.com no longer provides the Node.js app, but instead the static website.
I believe the problem lays within the A RECORD for the subdomain. Currently that is: A RECORD Host: subdomain Value: 11.22.33.44
I have been trying to switch to a CNAME RECORD, for example: CNAME RECORD Host: subdomain Value: subdomain.mydomain.com but I'm unfamiliar with them.
Источник: https://stackoverflow.com/questions/780 ... mal-domain
My webserver is serving both a static website through Apache, and a Node.js application.
I am trying to configure Apache to make my Node.js application available through subdomain.mydomain.com, with the following VirtualHosts:
ServerName subdomain.mydomain.com ProxyPass / http://localhost:8000 ProxyPassReverse / http://localhost:8000 ServerName subdomain.mydomain.com ProxyPass / https://localhost:8000 ProxyPassReverse / https://localhost:8000 While leaving the static website available at mydomain.com. These rules worked fine for hosting the Node.js app at a subdirectory, but now that I have changed them going to subdomain.mydomain.com no longer provides the Node.js app, but instead the static website.
I believe the problem lays within the A RECORD for the subdomain. Currently that is: A RECORD Host: subdomain Value: 11.22.33.44
I have been trying to switch to a CNAME RECORD, for example: CNAME RECORD Host: subdomain Value: subdomain.mydomain.com but I'm unfamiliar with them.
Источник: https://stackoverflow.com/questions/780 ... mal-domain
Мобильная версия