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!
As always, an excellent, clear tutorial - thank you. Just a quick question: I subsequently set up a self-signed SSL certificate and don’t get the password authentication when connecting via https. Does this need to be added to the 000-defualt.conf file somehow or somewhere else? I’m basically closing off a subdomain that we are using internally as a knowledge-base, hence the self-signed certificate… I’m relatively new to this Apache/ server stuff and my knowledge goes as far as the introductory DO tutorials like ‘New Ubuntu 14.04 Server Checklist’, just so potential respondents know… Thanks
Excellent tutorial! I have a question, it’s possible to set up an authentication time, because if i insert the credentials, every time that i close my browser and re-open it i’m already logged in.
Thanks
I could not get things to work when configuring Basic authentication using Virtual Host Definition following this guide.
The auth directives no longer works within a <Directory> directive in Apache 2.4. They must be defined within a <Location> directive as per the example from Apache docs. E.g.
<Location />
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Location>
Minor documentation consistency niggle - the realm in the screenshot (“Restricted Server”) doesn’t match the AuthName in the example configuration. Making these match is useful for the uninitiated, so that they can see that the “Server says” label is derived directly from the AuthName directive.
I am unable to log into my raspberry pi using my ubuntu username and password after following this tutorial. I completed this tutorial on a Wednesday, it worked fine up till today (Saturday). I’m wondering if there is something I could have done differently.
Thank you for the great tutorial. I have just 1 Problem. When I set up the password authentication like in the Tutorial, it doesn’t work for https. So what I did is, I added a new VirtualHost to the 000-default.conf File, created an SSL certificate and basically added the same content as in the VirtualHost for http. However, I can still connect to this Directory without password authentication. Do I have to add the VirtualHost to another file? Or is there something else I have to do?
How do I restrict access to just one file instead of a directory?
If I use the same code with Files directive instead of Directory directive, it doesn’t work.
(Apache 2.2.3)
This comment has been deleted