# Hide nextcloud vm index.php

**URL:** <https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700>\
**Category:** ℹ️ Support\
**Created:** [February 9, 2017, 1:35pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700 "2017-02-09T13:35:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scanner](https://help.nextcloud.com/letter_avatar/scanner/32/6_22734026db12803ebb3e059622ac3534.png) [@Scanner](https://help.nextcloud.com/u/Scanner)\
**Post date:** [February 9, 2017, 1:35pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/1 "2017-02-09T13:35:04Z")

</div>

Hi, I am not a Linux expert  
I am using the nextcloud community vm production V11. and would like to know how I can hide the root index.php page, the one that says “thank you for downloading…”  
I found it in /var/www  
if I move it to another folder when I navigate to [http://192.168.1.5](http://192.168.1.5) I am then presented with two folders. if I make this server available to the public people tend to forget about the /nextcloud part of the url or they go to the base url and are either presented with these two folders or the page that shows the config of the server with all the internal addresses.

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [February 9, 2017, 1:38pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/2 "2017-02-09T13:38:13Z")

</div>

You need to enable .htacces and after it you can rewrite index.php

---

<div class="post-metadata">

**Author:** ![JasonBayton](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jasonbayton/32/297_2.png) [@JasonBayton](https://help.nextcloud.com/u/JasonBayton)\
**Post date:** [February 9, 2017, 1:43pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/3 "2017-02-09T13:43:33Z")

</div>

Yup, or configure the Apache config file to write out /nextcloud as the base URL for the vhost.

---

<div class="post-metadata">

**Author:** ![Scanner](https://help.nextcloud.com/letter_avatar/scanner/32/6_22734026db12803ebb3e059622ac3534.png) [@Scanner](https://help.nextcloud.com/u/Scanner)\
**Post date:** [February 9, 2017, 3:24pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/4 "2017-02-09T15:24:53Z")

</div>

Thnaks for the replied however. I tried changing the apache2.conf file with little success, I may need a little elaboration on some answers  
I added /nextcloud to the end of /var/www but end up with access denied rather than the login page

/Directory /\>  
Options FollowSymLinks  
AllowOverride None  
Require all denied  
/Directory\>

Directory /usr/share\>  
AllowOverride None  
Require all granted  
/Directory\>

Directory /var/www\>  
Options Indexes FollowSymLinks  
AllowOverride None  
Require all granted  
/Directory\>"

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 6:20pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/5 "2024-09-23T18:20:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:15pm UTC](https://help.nextcloud.com/t/hide-nextcloud-vm-index-php/8700/6 "2024-12-09T13:15:27Z")

</div>


