By monty95
Hello,
On my site, I have an article located at: https://dowji.com/ee/ohm-law but how do I make a file that could be accessed through https://dowji.com/ee. I tried adding a second index.php file in the /ee/ folder but that didn’t work.
An example from DO: Here’s an URL for an article: https://www.digitalocean.com/community/tutorials/how-to-protect-your-server-against-the-dirty-cow-linux-vulnerability But, here’s the URL for an index of all articles: https://www.digitalocean.com/community/tutorials
I’m using Ubuntu with Apache.
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!
On a standard LAMP server (where you do not have rewrites for pretty URLs enabled in software like WordPress) creating a file called index.html or index.php in that directory on your server should do the trick. You can also check the DirectoryIndex variable in your virtualhost configuration in /etc/apache2/sites-enabled/ to make sure that the filename you are using is listed. Apache will look for the filenames in that directive (usually index.html, index.php, etc) when the directory itself is requested.
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.