1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is it possible to make autoindex module self refresh?

Discussion in 'Apache' started by Petr Mácha, Feb 22, 2021.

  1. #1
    Hello,
    I woud like to ask, if it is somehow possible to force autoindex page to refresh automaticlly (for example each 5 seconds).
    The reason I want this is following: I have website, where generatig of index is based on data availability. But unfortunatelly, it takes a while for data to compute and transfer on server. During this time, there is onlyindex of page generated by apache. What I want is to make apache refresh this index of page itselfs until index.html is created and webpage with whole data is ready.

    Is it possible to do this somehow? I know I could rewrite all the page differently, to load for example dynamicly without data and then add data, but it would be big step and I also want to have this index of available to users, to watch data loading into page folder.

    Thank you very much for your answer.
     
    Petr Mácha, Feb 22, 2021 IP
  2. ddvu

    ddvu Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    yes, you can simply add html into your autoindex like so:

    https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#indexheadinsert

    then add a meta refresh: https://en.m.wikipedia.org/wiki/Meta_refresh
     
    ddvu, Mar 27, 2021 IP