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.

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!
@Chip: <blockquote>1. You should not make your web directory owned by a regular user: use the ‘www-data’ user instead.</blockquote> Why is that? It’s recommended to make the web directory owned by a regular user and not www-data for security reasons. <blockquote>3. On OS X or Linux, use sudo, not su.</blockquote> This article doesn’t use <code>su</code> at all. Nonetheless, sudo and su are two different commands that serve two different purposes.
Hi, if a have not a domain, but i would like test a website, uploaded the examle directory: /home/absys/public_html/samplewebsite
How to refer our browser , adn how to configure my virtual host ? No domain only test.
Thanks.
@Chris: That’s fine, it means that there are no files in your document root.
This doesn’t work for the most modern apache installs… In steps four & five, the guide refers to “/apache2/sites-available/default”, telling you to copy it & rename it “example.com” However, many people arriving here for help will have the following setting in their /etc/apache2/apache2.conf:
IncludeOptional sites-enabled/*.conf
Everythings’ gotta end in .conf, basically. You’ll instead have to use the command for ‘Step Four’;
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.conf
OK, so two further steps I took to finally get this working on my Debian system;
<VirtualHost example.com:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/html/example.com/public_html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
It’s taking me hours of messing around to get to this point - I hope that this helps someone out there. Once I did get it working, it seems kinda obvious - & daft that it took me so long, but I’m a noob at this stuff.
I think my problems stem from the fact that I’m running Debian Jessie, not ‘Wheezy’. It’s the only thing I can summize.