Report this

What is the reason for this report?

sites-available and sites-enabled?

Posted on December 13, 2016

Hi

What’s the difference between sites-available and sites-enabled?

I’m having some difficulty getting either .htaccess or mod_rewrite to work. I’m not sure which bit is failing at the moment.

I been reading two guides

‘How To Use the .htaccess File’ tells me to open /etc/apache2/**sites-available**/default which is empty (?), according to the guide it shouldn’t be.

And ‘How To Set Up mod_rewrite for Apache on Ubuntu 14.04’ tells me to open /etc/apache2/**sites-enabled**/000-default.conf

Am I supposed to be editing both these files?

Bit confused :)

The developer cloud

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

Start building today

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