Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5f5449
commit 3fa8679
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ip.stevenwilkin.com | ||
|
||
Minimal Rack app to display your external IP address in the style of [whatismyip.com](http://whatismyip.com) | ||
|
||
## Running | ||
|
||
Run the app on localhost port 3000 with the following: | ||
|
||
rackup ./config.ru -p 3000 | ||
|
||
Browse to [http://0.0.0.0:3000](http://0.0.0.0:3000) | ||
|
||
## Sample Apache VirtualHost config for mod_rails | ||
|
||
To host the app using Apache and Phusion Passenger use something like: | ||
|
||
<VirtualHost *:80> | ||
ServerName ip.stevenwilkin.com | ||
DocumentRoot /var/www/ip.stevenwilkin.com/public | ||
</VirtualHost> | ||
|
||
Where the contents of the repo have been deployed to `/var/www/ip.stevenwilkin.com` |