Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io/webserver] problem setting directoryIndex in virtual-hosts.xml #1069

Open
al-Obaidi opened this issue Aug 25, 2017 · 0 comments

Comments

@al-Obaidi
Copy link

al-Obaidi commented Aug 25, 2017

Setting directoryIndex in conf.d/virtual-hosts.xml doesn't work.
For example, if I want to set "x.pdf" as a directoryIndex, this supposed setting will not work:

conf.d/virtual-hosts.xml

<params>
    <param name="documentRoot" type="string">/opt/appserver/webapps/example_com</param>
    <param name="directoryIndex" type="string">x.pdf</param>
</params>

As a temproray solution, "x.pdf" should be added to appserver.xml as follow

<server
name="http"
<params>
<param name="directoryIndex" type="string">index.dhtml index.do index.php index.html index.htm x.pdf</param>

But this will make "x.pdf" is a directoryIndex for the whole server not to a specific virtual-host.

Test on CentOS Linux release 7.3.1611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant