Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi! I’m having a problem with my subdomain. First, I use apache and my main domain is www.wasd.pt which uses WordPress. And now i’m trying to create a subdomain that will host a nodejs server in another port (3000).
I’ve created a A record via Digital Ocean networking panel. I’m looking for quickie.wasd.pt
Added new virtual host on 000-default.conf and this is my actual file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/www/html/error.log
CustomLog /var/www/html/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =wasd.pt [OR]
RewriteCond %{SERVER_NAME} =www.wasd.pt
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName quickie.wasd.pt
DocumentRoot /var/www/html/quickie
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/quickie/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/error-quickie.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/www/html/access-quickie.log combined
# sub:
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://wasd.pt:3000/
ProxyPassReverse / http://wasd.pt:3000/
</VirtualHost>
what intrigues me the most is when i use curl to my subdomain it responds with the html code i’m looking for. Meaning that nodejs is running and working.
What do I need to change more so that the subdomains works?
thanks for you help! IvoPereira
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2