Changing Index of / page

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Changing Index of / page

Postby astonlecren » 21. May 2012 09:25

Hey

I want to change the page you get when theres no index file and you go to http://localhost/ and it says


Index of /


Apache 2.2 bla bla bla


Help thanks!
astonlecren
 
Posts: 3
Joined: 21. May 2012 09:24
Operating System: Ubuntu

Re: Changing Index of / page

Postby AndzinSan » 21. May 2012 11:00

If you dont want to see directory content of page where is not index.* file, just turn out autoindex module in httpd.conf
Apache 2.2.22 with mod_autoindex_color, python 2.7.2/diango and PHP 5.3.8
Skilled in HTML, CSS, JS, jQUERY, PHP, MYSQL...
AndzinSan
 
Posts: 15
Joined: 19. May 2012 19:20
Operating System: win7

Re: Changing Index of / page

Postby astonlecren » 21. May 2012 11:11

I want to be able to change the Index of / to something else. Can you help me?

EDIT: I dont want an index.html or .php file either I want to have .zips in my htdocs folder and the Index of / page will say something else
astonlecren
 
Posts: 3
Joined: 21. May 2012 09:24
Operating System: Ubuntu

Re: Changing Index of / page

Postby AndzinSan » 21. May 2012 11:24

I am not sure if I understand you. You want to change html source of page generated when you listening root / in browser without index.* file? Page displayed when there is not index (or other indexed file spicified) file is automatic generated by module autoindex in apache. This output cant be edited. If you use autoindex_color module, you can specify some collors and with iconv module you can specifi file icons and desriptions based on extesion or mime type.
Apache 2.2.22 with mod_autoindex_color, python 2.7.2/diango and PHP 5.3.8
Skilled in HTML, CSS, JS, jQUERY, PHP, MYSQL...
AndzinSan
 
Posts: 15
Joined: 19. May 2012 19:20
Operating System: win7

Re: Changing Index of / page

Postby astonlecren » 21. May 2012 11:33

Yes,and damn. Oh well, thanks
astonlecren
 
Posts: 3
Joined: 21. May 2012 09:24
Operating System: Ubuntu

Re: Changing Index of / page

Postby JonB » 21. May 2012 17:12

You need an 'autoindex' script - (often made in PHP or Perl)

Google for 'AutoIndex scripts'

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests