question

jeanbon-3227 avatar image
0 Votes"
jeanbon-3227 asked SamWu-MSFT commented

Default CSS in IIS

Hello there,
It exist a possibility to load CSS file per default ?

In my case I use the option for web server the "directory exploration" ( traduction from french sentence, may be not fully exact ) so I don't load displayed content from HTML page.

If you have a solution, whether it is to display the same content via an HTML page, an option loading a CSS by default or anything else I would be grateful if you would share it with me !

Thank's in advance°

windows-server-iis-configuration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

@jeanbon-3227 Does this meet your requirements? Use the Default Document feature page to configure the list of default documents. If a user accesses your site or application without specifying a document name (for example, by requesting http://www.contoso.com instead of http://www.contoso.com/Default.css), you can configure IIS to serve a default document such as Default.css. IIS returns the first default document in the list that matches a file name in the directory.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jeanbon-3227 avatar image
0 Votes"
jeanbon-3227 answered SamWu-MSFT commented

Hello @SamWu-MSFT ,

I know the existance of this page and I have configured it to load a CSS file per default but it return me the CSS page as expected :).
It is possible that this is a role in the solution of the problem but unfortunately i really don't know ...

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@jeanbon-3227 Has your problem been solved? If it is solved, please accept the solution as answer. if not, please post more details information about your requirement.

0 Votes 0 ·
jeanbon-3227 avatar image
0 Votes"
jeanbon-3227 answered SamWu-MSFT commented

I have found the correct denomination : Directory Browsing

Well I have enabled this to show list of desired files, everything is ok.

Now I want load CSS, how can I do this ?

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@jeanbon-3227 Use the Directory Browsing feature page to modify the content settings for browsing a directory on the Web server. what does enabling this have to do with load CSS?

0 Votes 0 ·

For you to tell me.

In waiting a real answer I will continue with Apache.

0 Votes 0 ·

Okay, if you have iis questions, welcome to discuss.

0 Votes 0 ·
Show more comments