Thread: Aura ONE Kobo Aura One owners thread
View Single Post
Old 10-07-2022, 02:29 AM   #1398
fafaforza
Zealot
fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.fafaforza is not intimidated by interfenestral monkeys.
 
Posts: 140
Karma: 26780
Join Date: Sep 2009
Location: Brooklyn, NY
Device: Aura ONE
Here's my simple Apache httpd.conf file if anyone goes this route. It can likely be stripped down a lot.

DocumentRoot is where you specify where the books are, SRVROOT is where the Apache bundle is. I think I have the apachehaus.com bundle.

I then just execute bin/httpd.exe whenever I need it. You can also run it all the time as a Windows service.

Code:
Define SRVROOT "C:\Users\user\Downloads\Apps\Apache"
ServerRoot "${SRVROOT}"
Listen 80
ErrorLog "logs/error.log"
LogLevel warn

LoadModule alias_module modules/mod_alias.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so

<IfModule unixd_module>
User daemon
Group daemon
</IfModule>

ServerAdmin admin@example.com
ServerName localhost:80
<Directory />
    AllowOverride none
    Require all denied
</Directory>

DocumentRoot "C:\Users\user\Downloads\books"
<Directory "C:\Users\user\Downloads\books">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
	IndexOptions NameWidth=*
	IndexOptions HTMLTable
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>


<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "logs/access.log" common
</IfModule>

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/httpd-proxy-html.conf
</IfModule>

Last edited by fafaforza; 10-07-2022 at 02:33 AM.
fafaforza is offline   Reply With Quote