USB self-contained server: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
No edit summary
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric)
 
Line 1: Line 1:
=[http://ocavyle.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
<span id="top"></span>
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
{| cellpadding="2"
{| cellpadding=&quot;2&quot;
|__TOC__||'''USB self-contained server'''
|__TOC__||'''USB self-contained server'''
|}
|}
Line 16: Line 15:
* Portable Firefox
* Portable Firefox
* A PAC file
* A PAC file
* A domain name I will use this address '''&lt;nowiki&gt;http://center.uniformserver.com&lt;/nowiki&gt;'''
* A domain name I will use this address '''<nowiki>http://center.uniformserver.com</nowiki>'''


== Installation ==
== Installation ==
Line 28: Line 27:
'''''Install Firefox Portable'''''
'''''Install Firefox Portable'''''


# Download the latest version of Firefox Portable from: [http://portableapps.com/apps/internet/firefox_portable Portable Apps] save to any folder&lt;br&gt;(File '''Firefox_Portable_3.0.6_en-us.paf.exe)'''
# Download the latest version of Firefox Portable from: [http://portableapps.com/apps/internet/firefox_portable Portable Apps] save to any folder<br>(File '''Firefox_Portable_3.0.6_en-us.paf.exe)'''
# On your memory stick at the top level create a new folder named '''fx3''' (choose any name you like)
# On your memory stick at the top level create a new folder named '''fx3''' (choose any name you like)
# Double-click on the file downloaded '''Firefox_Portable_3.0.6_en-us.paf.exe'''. When prompted select the folder '''fx3''' on your memory stick and click OK. A '''FirefoxPortable''' folder will be created and all the necessary files installed.
# Double-click on the file downloaded '''Firefox_Portable_3.0.6_en-us.paf.exe'''. When prompted select the folder '''fx3''' on your memory stick and click OK. A '''FirefoxPortable''' folder will be created and all the necessary files installed.
Line 41: Line 40:


Navigate to the end of this file and just under the default host (localhost:80) add the new host section:
Navigate to the end of this file and just under the default host (localhost:80) add the new host section:
&lt;pre&gt;
<pre>
NameVirtualHost *
NameVirtualHost *
&lt;VirtualHost *&gt;
<VirtualHost *>
ServerName localhost:80
ServerName localhost:80
DocumentRoot /www
DocumentRoot /www
&lt;/VirtualHost&gt;
</VirtualHost>


##########VIRTUAL HOST SETUP##########
##########VIRTUAL HOST SETUP##########
# CENTER.UNIFORMSERVER.COM
# CENTER.UNIFORMSERVER.COM
&lt;VirtualHost *&gt;
<VirtualHost *>
ServerName center.uniformserver.com
ServerName center.uniformserver.com
DocumentRoot /www/center
DocumentRoot /www/center
&lt;/VirtualHost&gt;
</VirtualHost>
&lt;/pre&gt;
</pre>


I am using ServerName '''center.uniformserver.com''' and DocumentRoot '''/www/center''' use your real domain and create the appropriate folder in '''L:\www''' (again your drive letter may be different)  
I am using ServerName '''center.uniformserver.com''' and DocumentRoot '''/www/center''' use your real domain and create the appropriate folder in '''L:\www''' (again your drive letter may be different)  
Line 61: Line 60:
== Create PAC file ==
== Create PAC file ==
Create the following file and save as '''test.pac''' to root folder '''L:\www'''  
Create the following file and save as '''test.pac''' to root folder '''L:\www'''  
{| cellpadding=&quot;4&quot; cellspacing=&quot;1&quot; style=&quot;background:#000000;&quot;
{| cellpadding="4" cellspacing="1" style="background:#000000;"
|- style=&quot;background:#e8e8e8;&quot;
|- style="background:#e8e8e8;"
!test.pac File
!test.pac File
|- style=&quot;background:#f5f5f5;&quot;
|- style="background:#f5f5f5;"
|
|
&lt;pre style=&quot;border:none&quot;&gt;
<pre style="border:none">
function FindProxyForURL(url, host)
function FindProxyForURL(url, host)
{
{
   if (shExpMatch(url,&quot;http://center.uniformserver.com/*&quot;)) return &quot;PROXY 127.0.0.1&quot;;
   if (shExpMatch(url,"http://center.uniformserver.com/*")) return "PROXY 127.0.0.1";
   return &quot;&quot;;
   return "";
}  
}  
&lt;/pre&gt;
</pre>
|}
|}


Line 78: Line 77:
=== Install PAC file ===
=== Install PAC file ===
# Run Firefox by double clicking on file '''FirefoxPortable.exe''' located L:\fx3\FirefoxPortable\FirefoxPortable.exe
# Run Firefox by double clicking on file '''FirefoxPortable.exe''' located L:\fx3\FirefoxPortable\FirefoxPortable.exe
# Select Tools &gt; '''Options'''
# Select Tools > '''Options'''
# Select '''Advanced''' Icon
# Select '''Advanced''' Icon
# Select '''Network''' Tab
# Select '''Network''' Tab
# Click '''Settings button'''
# Click '''Settings button'''
# Check '''Automatic proxy configuration URL''' radio button
# Check '''Automatic proxy configuration URL''' radio button
# Type-in '''&lt;nowiki&gt;http://localhost/test.pac&lt;/nowiki&gt;'''
# Type-in '''<nowiki>http://localhost/test.pac</nowiki>'''
# Click '''OK twice''' to close both dialogs.
# Click '''OK twice''' to close both dialogs.
# Close Firefox.
# Close Firefox.
Line 92: Line 91:
# Start Uniform Server (Double click on unicontroller.exe) and start servers.
# Start Uniform Server (Double click on unicontroller.exe) and start servers.
# Run Firefox by double clicking on file '''FirefoxPortable.exe''' located L:\fx3\FirefoxPortable\FirefoxPortable.exe
# Run Firefox by double clicking on file '''FirefoxPortable.exe''' located L:\fx3\FirefoxPortable\FirefoxPortable.exe
# Type the following into browser address bar: '''&lt;nowiki&gt;http://localhost/test.pac&lt;/nowiki&gt;'''
# Type the following into browser address bar: '''<nowiki>http://localhost/test.pac</nowiki>'''
# Contents of folder '''www/center''' displayed.
# Contents of folder '''www/center''' displayed.


Line 103: Line 102:
Create a new batch file ff_pac.bat and save to USB root
Create a new batch file ff_pac.bat and save to USB root


{| cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; style=&quot;background:#000000;&quot;
{| cellpadding="2" cellspacing="1" style="background:#000000;"
|- style=&quot;background:#e8e8e8;&quot;
|- style="background:#e8e8e8;"
!ff_pac.bat
!ff_pac.bat
|- style=&quot;background:#f5f5f5;&quot;
|- style="background:#f5f5f5;"
|
|
&lt;pre style=&quot;border:none;padding:2px&quot;&gt;
<pre style="border:none;padding:2px">
TITLE UNIFORM SERVER - PAC
TITLE UNIFORM SERVER - PAC
COLOR B0
COLOR B0
Line 140: Line 139:
:next1
:next1
set /a cnt+=1
set /a cnt+=1
if &quot;%cnt%&quot;==&quot;60&quot; goto :TIMEDOUT
if "%cnt%"=="60" goto :TIMEDOUT
home\admin\program\unidelay.exe
home\admin\program\unidelay.exe
home\admin\program\pskill.exe FirefoxPortable.exe &gt; nul
home\admin\program\pskill.exe FirefoxPortable.exe > nul
IF ERRORLEVEL 1 goto :next1
IF ERRORLEVEL 1 goto :next1


Line 157: Line 156:
rem restore original working directory
rem restore original working directory
popd
popd
&lt;/pre&gt;
</pre>
|}
|}


Line 165: Line 164:
Now create a file named '''autorun.inf''' and save to USB root. The one I used for testing is shown below:
Now create a file named '''autorun.inf''' and save to USB root. The one I used for testing is shown below:


{| cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; style=&quot;background:#000000;&quot;
{| cellpadding="2" cellspacing="1" style="background:#000000;"
|- style=&quot;background:#e8e8e8;&quot;
|- style="background:#e8e8e8;"
!autorun.inf
!autorun.inf
|- style=&quot;background:#f5f5f5;&quot;
|- style="background:#f5f5f5;"
|
|
&lt;pre style=&quot;border:none;padding:2px&quot;&gt;
<pre style="border:none;padding:2px">
[autorun]
[autorun]
open=ff_pac.bat
open=ff_pac.bat
action=Run FF UniController
action=Run FF UniController
icon=docs\SRC\uslogo.ico
icon=docs\SRC\uslogo.ico
&lt;/pre&gt;
</pre>
|}
|}


Navigation menu