Question

How do i remove Apache2 Ubuntu Default Page?

Please, kindly need help, after deployed flask application on ubuntu 14 into this path var/www/FlaskApp, Accessing my IP, it display correctly, So, i decided to point my domain to digital ocean which display “Apache2 Ubuntu Default Page”, please how do i remove this default page to display the content on var/www/FlaskApp

Here is my folder structure var/www ---------------------FlaskApp --------------------------- templates --------------------------- static --------------------------- app.py ---------------------html ---------------------scrapy.cfg


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

I was able to solve this issue by below steps:

myproject here is depend on what you previously setup.

  1. Edit: $ sudo vim /etc/nginx/sites-available/myproject

  2. Find: server { listen 80; server_name server_domain_or_IP;

  3. Replace server_domain_or_IP with your domain name.

  4. Restart: $ sudo service apache2 restart

I’m having the exact same issue. I can’t get rid of the apache default page. I’m using apache as a reverse proxy only, so no content is served by apache itself. The reverse proxy works for any URL requested except for the main /, in that case I always get the default page. Already tried all mentioned things here.

how if i want to open using IP Address?