Running with Apache not MServer

Monkey Forums/Monkey Programming/Running with Apache not MServer

c.k.(Posted 2012) [#1]
How do I get my HTML5 projects to run with Apache?


slenkar(Posted 2012) [#2]
not sure, but you could try:

in monkey/bin edit the config.txt file
htmlplayer=" path to apache


c.k.(Posted 2012) [#3]
I have Apache running as a service, so I need the build to go through the established httpdocs path.

So what I need is to be able to specify a build path and point it to my httpdocs folder, then I can just pull up localhost in my browser and run it that way.

@Mark: Is there currently a way to do this?

@ziggy: Does Jungle IDE have a provision for this?

Thank you!


DruggedBunny(Posted 2012) [#4]
Another option might be to provide another path for Apache to look at, though I don't know how you'd specify this off-hand...


c.k.(Posted 2012) [#5]
Good idea, James. I tried taking the steps at this site: http://www.ghodmode.com/blog/2010/08/using-apache-aliases-instead-of-symbolic-links/

but couldn't get it to work. :-/

I'll keep at it, but more ideas welcome. :-)


c.k.(Posted 2012) [#6]
Got it to work! Here's what I did in my http.conf file:

<IfModule alias_module>
#added this line to this section:
Alias /td/ "C:/location/of/HTML5/project/"
</IfModule>

#added this Directory directive:
<Directory "C:/location/of/HTML5/project/">
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride All
 Order allow,deny
 Allow from all
DirectoryIndex MonkeyGame.html
</Directory>


and now I can go to "localhost/td" and my game comes up, served by Apache!


slenkar(Posted 2012) [#7]
how would I get this to work in linux?

Mserver only has ?Macos and ?Win32
I tried doing ?Linux OpenURL but it didnt work like it does on windows

Apache is a giant beast so preferably with a small server program


c.k.(Posted 2012) [#8]
You'll have a http.conf file you can modify as above. Then restart the Apache daemon and it should work for you.

I'm not familiar with other servers, but I hear there are some lightweight and speedy options! :-)