Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Testing a web server ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Post

    Quote Originally Posted by Redrobes View Post
    Yeah I am thinking maybe the issue is that I am hosting it on 8080 cos I run an internet web server for myself too. Maybe I should host it on 80 like a normal web server so that I can drop the :8080 bit of the url and then maybe everyones firewalls and internet connections wont think its too bizarre.
    If you are using apache, you can use mod-rewrite to map a url to the other port. Something like this should work (untested):
    Code:
    Options +Indexes +FollowSymLinks
    RewriteEngine On
    RewriteCond %{THE_REQUEST} ^[a-z]{3,9}\ /mycooldemo\.html\ HTTP/ [NC]
    RewriteRule ^.*mycooldemo\.html$ http://82.32.151.149:8080/ [R=301,L]
    and should redirect connections like
    Code:
    http://82.32.151.149/mycooldemo.html?x=1444771&y=3376670.4&z=100&s=512
    to
    Code:
    http://82.32.151.149:8080/?x=1444771&y=3376670.4&z=100&s=512
    -Rob A>

  2. #2
    Community Leader Facebook Connected torstan's Avatar
    Join Date
    Jul 2007
    Posts
    4,199

    Post

    @Redrobes: Thanks. Missed that in the OP. Cheers for clearing it up.

    Looks good.

  3. #3
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    Quote Originally Posted by RobA View Post
    If you are using apache, you can use mod-rewrite to map a url to the other port.
    Hi Rob, These images are being served from the ViewingDale app itself. They are not images which are saved and hosted via Apache. I have been programming the web server using sockets and stuff but it does not have a nice rewrite engine. What it does mean is that there is no limit to where to go and what values to zoom to like say Google maps. Google has discreet levels of zoom which is alright and makes caching easier, faster and less bandwidth but its not good for a map that is (hopefully) changing as we add new maps to it. Obviously that also means its web interface is never going to be quite as slick as Google maps either for all the same reasons. But then if you wanted it more slick you could connect via its standard VTT connection and get the map updates super fast since it would be hosted and rendered locally.

    What I probably will do is host a standard web page with an iframe containing the image and get the page to request the image from the app. So people don't connect to some odd URL and have no UI.

    Gotta think how I can get the server running all day. It might have to be an occasional thing tho. I had some more ideas about the mechanics of play by post in CWBP and all of this serving stuff which ill type up in a different post.

  4. #4
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    Quote Originally Posted by torstan View Post
    Also, any chance of a larger image?
    Yes, change the S value. I have set it to max at 1280 I think. Certainly 1024. But I am pulling the plug on it in a mo. Can try again tomorrow eve tho.

  5. #5
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,530

    Default

    I thought I knew some stuff about web servers, but you guys are way beyond me now...
    My Finished Maps | My Challenge Maps | Still poking around occasionally...

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  6. #6
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    Its not that bad. Maybe ill write a few notes about all of this because its useful to know esp if your setting up a VTT where you have to serve as a DM. Its more VTT related than anything specific to mapping but it comes up time and time again so maybe. The rewrite engine is slightly more complicated but you dont need to know about that unless you are running Apache or have web pages served from an ISP which uses it. And even then you don't have to use it.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •