The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches
Reply
 
LinkBack Thread Tools Display Modes
  #16  
Old 02-03-2008, 09:56 AM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

i had to play with some paths in httpd.conf to make it work!

question: how can i hack the http address of the pdf i'm reading to make it open at a certain page?
thanx!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #17  
Old 02-07-2008, 06:01 AM
-V-O-Y-A-G-E-R-'s Avatar
Green Apple
 
Join Date: Dec 2007
Device + Firmware: black 16GB SIM-free iPhone 3G
Operating System: Latest OS X
Location: Serbia
Posts: 81
Thanks: 27
Thanked 30 Times in 6 Posts

I modified .conf file as advised, but I still see the default lighttpd index page. How come? If I try to navigate manually to .dirlist, I get 404 error.

What could go wrong?
Later I'll attach my .conf file..it might be my bad editting.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #18  
Old 02-20-2008, 04:59 PM
-V-O-Y-A-G-E-R-'s Avatar
Green Apple
 
Join Date: Dec 2007
Device + Firmware: black 16GB SIM-free iPhone 3G
Operating System: Latest OS X
Location: Serbia
Posts: 81
Thanks: 27
Thanked 30 Times in 6 Posts

As promissed...

Yesterday I upgraded to 1.1.3.

Installed PHP and lighttpd, can access "hello web" index page.

Created .dirlist folder and unpacked dirlist.zip content inside.

Also modified lighttpd.conf as guided, but I guess that I did a bad job.

Code:
server.document-root = "/private/var/root/Sites/"
# server.port = 80 # Default
#server.bind = "127.0.0.1" # Default: All
server.modules = ( "mod_cgi","mod_indexfile" )
server.tag = "iPhone lighttpd"

#server.pid-file            = "/var/run/lighttpd.pid"

accesslog.filename = "/var/log/lighttpd/access.log"
server.errorlog = "/var/log/lighttpd/error.log"

index-file.names = ( "index.php", "index.py", "index.pl", "index.cgi", "index.html", "default.html", "/.dirlist/dir-generator.php" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".py" )

cgi.assign = ( ".pl"  => "/usr/bin/perl", ".py" => "/usr/bin/python", ".rb" => "/usr/local/bin/ruby", ".cgi" => "", ".sh" => "", ".php" => "/opt/iphone/bin/php-cgi" )

mimetype.assign             = (
	".pdf"          =>      "application/pdf",
	".sig"          =>      "application/pgp-signature",
	".spl"          =>      "application/futuresplash",
	".class"        =>      "application/octet-stream",
	".ps"           =>      "application/postscript",
	".torrent"      =>      "application/x-bittorrent",
	".dvi"          =>      "application/x-dvi",
	".gz"           =>      "application/x-gzip",
	".pac"          =>      "application/x-ns-proxy-autoconfig",
	".swf"          =>      "application/x-shockwave-flash",
	".tar.gz"       =>      "application/x-tgz",
	".tgz"          =>      "application/x-tgz",
	".tar"          =>      "application/x-tar",
	".zip"          =>      "application/zip",
	".mp3"          =>      "audio/mpeg",
	".m3u"          =>      "audio/x-mpegurl",
	".wma"          =>      "audio/x-ms-wma",
	".wax"          =>      "audio/x-ms-wax",
	".ogg"          =>      "application/ogg",
	".wav"          =>      "audio/x-wav",
	".gif"          =>      "image/gif",
	".jpg"          =>      "image/jpeg",
	".jpeg"         =>      "image/jpeg",
	".png"          =>      "image/png",
	".xbm"          =>      "image/x-xbitmap",
	".xpm"          =>      "image/x-xpixmap",
	".xwd"          =>      "image/x-xwindowdump",
	".css"          =>      "text/css",
	".html"         =>      "text/html",
	".htm"          =>      "text/html",
	".js"           =>      "text/javascript",
	".asc"          =>      "text/plain",
	".c"            =>      "text/plain",
	".cpp"          =>      "text/plain",
	".log"          =>      "text/plain",
	".conf"         =>      "text/plain",
	".text"         =>      "text/plain",
	".txt"          =>      "text/plain",
	".dtd"          =>      "text/xml",
	".xml"          =>      "text/xml",
	".mpeg"         =>      "video/mpeg",
	".mpg"          =>      "video/mpeg",
	".mov"          =>      "video/quicktime",
	".qt"           =>      "video/quicktime",
	".avi"          =>      "video/x-msvideo",
	".asf"          =>      "video/x-ms-asf",
	".asx"          =>      "video/x-ms-asf",
	".wmv"          =>      "video/x-ms-wmv",
	".bz2"          =>      "application/x-bzip",
	".tbz"          =>      "application/x-bzip-compressed-tar",
	".tar.bz2"      =>      "application/x-bzip-compressed-tar",
	# default mime type
	""              =>      "application/octet-stream",
)
Now I can navigate to ie. .pdf file I placed in root/Sites, but where it should be in order to have it listed (browse and click) and not to have to type it's name in addressbar?

Thanks
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #19  
Old 03-06-2008, 05:56 AM
-V-O-Y-A-G-E-R-'s Avatar
Green Apple
 
Join Date: Dec 2007
Device + Firmware: black 16GB SIM-free iPhone 3G
Operating System: Latest OS X
Location: Serbia
Posts: 81
Thanks: 27
Thanked 30 Times in 6 Posts

Today I returned to this, read forum bit more and found some other useful tips

Ie, http://www.modmyi.com/forums/showpos...5&postcount=15

dir-listing.activate = "enable"
+
"mod_dirlisting"

I've also renamed .dirlist folder to .dirlist, as it was named :2dirlist for some reason (as Finder cannot add dot in the name, I used DiskOrder to rename dirlist to .dirlist, and then copied that folder to iPhone, but it's name got converted ) and reloaded 127.0.0.1 page and there it was..in its full colors

I've opened a new thread with all modifications in one place.

PDF/CHM/DOC/XLS/photo viewer - all-in-one Safari/Lighttpd based (complete instruct.)

Resulting look...

Click the image to open in full size.

Last edited by -V-O-Y-A-G-E-R-; 03-06-2008 at 05:56 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Native iPhone / iPod Touch App Launches

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 09:20 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top