I have my domain uberabasites.com Now, I want to create teste.uberabasites.com
server { server_name uberabasites.com; listen 80; root /var/www/uberabasites.com/public_html; access_log /var/www/uberabasites.com/logs/access.log; error_log /var/www/uberabasites.com/logs/error.log; index index.html index.php; location / { try_files $uri $uri/ @rewrites; } location @rewrites { rewrite ^ /index.php last; } location ~* .(jpg|jpeg|gif|css|png|js|ico|html)$ { access_log off; expires max; } location ~ /.ht { deny all; } location ~ .php { fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(.*)$; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
server { server_name teste.uberabasites.com; listen 80; root /var/www/teste.uberabasites.com/public_html; access_log /var/www/teste.uberabasites.com/logs/access.log; error_log /var/www/teste.uberabasites.com/logs/error.log; index index.html index.php; location / { try_files $uri $uri/ @rewrites; } location @rewrites { rewrite ^ /index.php last; } location ~* .(jpg|jpeg|gif|css|png|js|ico|html)$ { access_log off; expires max; } location ~ /.ht { deny all; } location ~ .php { fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(.*)$; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The config looks proper to me, you just need to add a DNS record for the subdomain and you should be good to go: <br> <br>Type: A <br>Name: teste <br>Value: your droplet’s IP address
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.