Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

update the file access sequence on webserver

General questions about VestaCP
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
shyboy
Posts: 17
Joined: Mon Jan 16, 2017 2:33 pm

update the file access sequence on webserver
  • Quote

Post by shyboy » Thu Jan 26, 2017 12:44 pm

Currently webserver looks for index.htm then index.php etc.

How do I change that and check first index.cfm page on the webserver?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: update the file access sequence on webserver
  • Quote

Post by ScIT » Thu Jan 26, 2017 2:08 pm

please share your os version.
Top

shyboy
Posts: 17
Joined: Mon Jan 16, 2017 2:33 pm

Re: update the file access sequence on webserver
  • Quote

Post by shyboy » Thu Jan 26, 2017 4:08 pm

core package Version:0.9.8 (amd64)
Ubuntu 14.04 x64
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: update the file access sequence on webserver
  • Quote

Post by ScIT » Fri Jan 27, 2017 7:09 am

Seems like DirectoryIndex is what you search: https://httpd.apache.org/docs/current/mod/mod_dir.html
Top

shyboy
Posts: 17
Joined: Mon Jan 16, 2017 2:33 pm

Re: update the file access sequence on webserver
  • Quote

Post by shyboy » Fri Jan 27, 2017 10:54 am

Yes, exactly this is what I need to update.
My question was which file I need to modify so it would effect all the websites and it should keep the same way if I create a new website.

TIA
Top

shyboy
Posts: 17
Joined: Mon Jan 16, 2017 2:33 pm

Re: update the file access sequence on webserver
  • Quote

Post by shyboy » Fri Jan 27, 2017 11:01 am

to be more specific on my question.
if I modify /etc/apache2/mods-enable/dir.conf

The new entries would be kept for all newly created websites?

Thanks
Top

shyboy
Posts: 17
Joined: Mon Jan 16, 2017 2:33 pm

Re: update the file access sequence on webserver
  • Quote

Post by shyboy » Fri Jan 27, 2017 1:34 pm

my current directoryIndex looks like
DirectoryIndex index.html

if I change this to
DirectoryIndex index.cfm index.html

What it should do is to look for index.cfm file and if can't find then look for index.html.

What its currently doing is looking for index.cfm and then generate the missing 404 error for index.cfm
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: update the file access sequence on webserver
  • Quote

Post by mehargags » Fri Jan 27, 2017 1:52 pm

just edit your virtual host in
/home/<user>/conf/web/apache2.conf
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: update the file access sequence on webserver
  • Quote

Post by ScIT » Fri Jan 27, 2017 2:14 pm

mehargags wrote:just edit your virtual host in
/home/<user>/conf/web/apache2.conf
But please take care: Everytime you change your web settings or rebuild your user, it will be overwriten from VestaCP. If you want to have a persistent solution, create your own template in /usr/local/vesta/data/templates/web
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password