Go Back   Pro/Forums > ProCooling Technical Discussions > Snap Server / NAS / Storage Technical Goodies
Password
Register FAQ Members List Calendar Chat

Snap Server / NAS / Storage Technical Goodies The Home for Snap Server Hacking, Storage and NAS info. And NAS / Snap Classifides

Reply
Thread Tools
Unread 06-20-2006, 08:30 PM   #1
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Snap as web server

OK, it's me again with another stupid problem, but...

I am using my snap as a web server. I told it to use a different index.html file than the normal snap page and it has done so splendidly. Here's the problem. My navigation buttons for the web site are javascript. When I click one of the buttons to go to the next page, I get a 404 not found error. When I look at the address bar, I see this: http://www.blah.com/page.htm? The snap is putting a ? at the end of the URL! If I manually delete this ? then the page loads. The ? is not in my code, and the page works fine locally in FrontPage. Heck, it even works if I open Internet Explorer and open the page locally. Doesn't work through the web though. ARRRGGGGHHHHHHHHHHHHHH!

Any ideas?
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 06-21-2006, 01:30 AM   #2
re3dyb0y
Cooling Savant
 
re3dyb0y's Avatar
 
Join Date: Aug 2004
Location: UK
Posts: 909
Default Re: Snap as web server

Probably Adaptecs way of saying - Ha, You're not doing that!
__________________
Snap Server Help Wiki - http://wiki.procooling.com/index.php/Snap_Server

Snap Server 2200 v3.4.807
2x 250GB Seagate Barracuda 7200.9
w/ UNIDFC601512M Replacement Fan

"Did you really think it would be that easy??"


Other NAS's
1x NSLU2 w/ 512mb Corsair Flash Voyager
Running Unslung 6.8b

1x NSLU2 w/ 8Gb LaCie Carte Orange
Running Debian/NSLU2 Stable 4.0r0


250GB LaCie Ethernet Disk
Running Windows XP Embedded
re3dyb0y is offline   Reply With Quote
Unread 06-21-2006, 07:20 AM   #3
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Snap as web server

Just because you were able to install JVM, doesn't mean its running. (Basic 101)

Check to see if jvm started up?????

And did you do a reboot after loading JVM?
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 06-21-2006, 10:19 AM   #4
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: Snap as web server

Quote:
Originally Posted by blue68f100
Just because you were able to install JVM, doesn't mean its running. (Basic 101)

Check to see if jvm started up?????

And did you do a reboot after loading JVM?
yes, and yes.
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 06-21-2006, 04:48 PM   #5
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: Snap as web server

Hmmm...did a little digging on Adapwreck's web site...seems as though it will only serve up the index.html file properly and won't do the java stuff by design. Looks like re3dyboy was correct. Another Adapwreck cripple. I'm still gonna play with it though.

BTW, I moved the web site to another server, and it works fine there. BASTARDS!!!
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 06-21-2006, 05:22 PM   #6
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Snap as web server

How did you start the JVM?

My 2200 does not support it due to memory restraints.

I found these cmd in debug:
Quote:
java Run Java class with arguments

jvm engine enable/disable
license {ADD/UPDATE/INFO} [{id} [{key-high-mid-low}]]
ram (megabytes of RAM for JVM process)
stack (Kbytes of RAM for JVM stack)
ssl on/off
Knowledge is dangerous in the wrong hands, help fuel the fire.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 06-21-2006, 07:23 PM   #7
jontz
Cooling Savant
 
Join Date: Feb 2006
Location: South Bend, IN
Posts: 385
Default Re: Snap as web server

When you install JVM on a 4100 it puts a SnapExtensions link at the bottom of the config page. You just click on it, and then start up JVM. The snap then reboots, and you are off to the races.

Installing JVM also puts an "enable SSL" option on the web config page.
__________________
Snap Server 4100, 4x120GB Seagate Drives, RAID 5, version 3.4.803
jontz is offline   Reply With Quote
Unread 06-22-2006, 01:34 PM   #8
re3dyb0y
Cooling Savant
 
re3dyb0y's Avatar
 
Join Date: Aug 2004
Location: UK
Posts: 909
Default Re: Snap as web server

Same on my 2200 jontz!
__________________
Snap Server Help Wiki - http://wiki.procooling.com/index.php/Snap_Server

Snap Server 2200 v3.4.807
2x 250GB Seagate Barracuda 7200.9
w/ UNIDFC601512M Replacement Fan

"Did you really think it would be that easy??"


Other NAS's
1x NSLU2 w/ 512mb Corsair Flash Voyager
Running Unslung 6.8b

1x NSLU2 w/ 8Gb LaCie Carte Orange
Running Debian/NSLU2 Stable 4.0r0


250GB LaCie Ethernet Disk
Running Windows XP Embedded
re3dyb0y is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 Off
Forum Jump


All times are GMT -5. The time now is 02:40 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...