Alpha Video Training
Page 1 of 2 12 LastLast
Results 1 to 30 of 32

Thread: Multiple Web Sites on one A5 WAS

  1. #1
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Multiple Web Sites on one A5 WAS

    Hello,

    Much has been posted about how to run multiple web sites on a single A5 WAS server. I have a simple and effective way to do this. The method is also cool because it visually hides the port and corresponding folders of where each server app is stored.

    What I started with is http:\\theminimalistrunner.com:81\m\ and now I can type http:\\theminimalistrunner.com and it returns http:\\theminimalistrunner.com.

    It took me an all night session to figure this one out.



    Also you will need to make sure that the following are uncommented inside of httpd.conf:

    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule env_module modules/mod_env.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule include_module modules/mod_include.so
    LoadModule isapi_module modules/mod_isapi.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so

    Additionally:
    ServerRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2"

    (on a windows 2008 hyperV server.)

    After you save the httpd.conf file you will need to restart the apache service.


    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  2. #2
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    I've started to set up my spare server following Michael's directions for a test. I don't know exactly how proxypass works, but it needs to properly isolate the folders for security and sessions to work. I used to use Apache to manage ALL of my A5 applications on a single server back in V9, but the same method does not work with V10. I'd like to get back to using Apache.

    Apache can be difficult to administer because everything is 'command line'. But it has utilities that are sorely missing from A5WAS, like the ability to block bad spiders, block by IP (A5 doesn't really do this), run separate websites without multiple A5 instances, etc.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  3. #3
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    The above example is missing a few lines It didn't take me 15 minutes to edit the httpd.conf and get it right which I posted 2 or 3 weeks ago The two lines below are important

    --------------------------
    ProxyRequests Off
    ProxyPreserveHost On
    --------------------------

    If you can deal with xbasic code Apache's simple config file should be no problem

    Steve use the example I sent you it works ALL Linux based programs use config files whether Apacke PHP Postfix Sendmail whatever anything ported to run on a Windows platform has the same config files I guess everyone has been spoiled by Windows But I remember when the win.ini and sys.ini were hand edits in Windows

    New project has been keeping me busy any questions use direct email

    Centos 5.5 with a XEN kernel running my SME server as a virtual guest and Win XP pro also Win2k server as virtuals 8 gb memory in Centos box and all is happy

    Greg
    Last edited by glbaird; 01-15-2011 at 11:08 AM.

  4. #4
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Multiple Web Sites on one A5 WAS

    Steve,

    Yes - I am getting the same as you... and what Greg says is correct.

    Here is what my amended httpd.conf snippet looks like now.

    NameVirtualHost *:80

    <VirtualHost *:80>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName site1.com
    ProxyPass / http://localhost:81/site1/
    ProxyPassReverse / http://localhost:81/site1/
    </VirtualHost>

    <VirtualHost *:80>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName site2.com
    ProxyPass / http://localhost:81/site2/
    ProxyPassReverse / http://localhost:81/site2/
    </VirtualHost>


    Tested both sites and they are both working for me.

    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  5. #5
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    There must be some other problem in my setup other than the VH script. Here is what I have and it always goes to the folder listed in the first VH setting. I have DNS for both domains pointing to the same IP address. my httpd.conf is set up per Michael's instructions for the LoadModules.

    --------------------

    NameVirtualHost *:80

    ##VIRTUAL HOSTS

    ##SITE1
    <VirtualHost 70.84.202.194:*>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName a5university.com
    ProxyPass / http://localhost:81/site1/
    ProxyPassReverse / http://localhost:81/site1/
    </VirtualHost>

    ##SITE2
    <VirtualHost 70.84.202.194:*>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName a5school.com
    ProxyPass / http://localhost:81/site2/
    ProxyPassReverse / http://localhost:81/site2/
    </VirtualHost>
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  6. #6
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Multiple Web Sites on one A5 WAS

    Steve,

    If there is a problem with one of the second virtual host it will go to the first by default. Rem out site1 and see if site2 works, or put site 2 first.

    Also, can you get to site2 by putting: http:\\a5school.com:81/site2/ or http://localhost:81/site2/

    I also rem'd out:

    #ServerName a5university.com:80

    Which apache creates when it does the install....


    Stupid question -- I am assuming that site1 and site2 are actual directories in the a5wroot that are controlled by the WAS?

    Also,

    The first header says to look at all ip addresses that are requesting port 80. Cool...

    NameVirtualHost *:80



    ##VIRTUAL HOSTS

    ##SITE1
    <VirtualHost 70.84.202.194:*>

    But the first site now says look at specific ip address and for all ports.

    I am wondering if because it is looking for all ports if this is causing the greif?

    Maybe

    ##SITE1
    <VirtualHost 70.84.202.194:80>

    will work...



    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  7. #7
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    Michael - Yes Site1 and Site2 are real folders under A5, and the domains are real registered domains with DNS pointing to my server.

    ----------------------

    I got the script to work. The way it had been, it mandated that the URL include "www" as in http://www.a5school.com". In my testing I did not include the www, so the first VH setting worked because my URL did not properly matched any of my VH settings, and Apache defaults to the first one, even if it is not valid.

    I changed the script, adding the "www" to the ServerName value and adding a line for ServerAlias for just the domain. Adding that ServerAlias line allowed the URL to work with or without the "www". I suspect the ServerAlias is how you carve out subdomains, like:

    ServerAlias sales.a5school.com
    ServerAlias forum.a5school.com

    So it is really a syntax issue and I expect there are other wildcard settings that would help make this easier.

    Still have to test this for proper security and session isolation.

    ---- current script ----------------------------------

    NameVirtualHost *

    ##VIRTUAL HOSTS

    ##SITE1
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName www.a5university.com
    ServerAlias a5university.com
    ProxyPass / http://localhost:81/site1/
    ProxyPassReverse / http://localhost:81/site1/

    CustomLog logs/site1_access.log combined
    ErrorLog logs/site1_error.log

    </VirtualHost>

    ##SITE2
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName www.a5school.com
    ServerAlias a5school.com
    ProxyPass / http://localhost:81/site2/
    ProxyPassReverse / http://localhost:81/site2/

    CustomLog logs/site2_access.log combined
    ErrorLog logs/site2_error.log

    </VirtualHost>
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  8. #8
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Well boys it's been fun watching you struggle but I am getting tired of sitting here -------- humboldt-rentals may take awhile to update haven't used it for a while but you get the idea and dnsexit can be slow at times

    take a look at my favicon has a problem small fix or stuck in cache

    http://www.gregorybaird.com/

    http://www.rental-helpers.com/




    directory structure as follows old databases a trash been re-named no edits work


    c:\A5Webroot\myweb rental-helpers.com
    c:\A5Webroot\myweb1 gregorybaird.com

    using apache

    SECERT it is running on SME server I have had running for 5 or 6 years with a proxypass contrib Handles all my mail webmail ftp mysql It does the heavy work and a idiot box like xp can deal with the app server

    REASON Linux is secure and FREE hard to admin NO has mysql yes
    old little box works fine

    Steve

    the ServerAlias is the true hostname www or ftp are cnames

    Greg
    Last edited by glbaird; 01-15-2011 at 10:38 PM.

  9. #9
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    Not struggling any more. Here I tested scripts for Site3 and Site4 as subdomains, see the 3rd and 4th script below. Note that for the subdomains I had to comment out the ServerName line. Still do have to test for session and security.

    --------------------------

    ##VIRTUAL HOSTS

    ##SITE1
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName www.a5university.com
    ServerAlias a5university.com
    ProxyPass / http://localhost:81/site1/
    ProxyPassReverse / http://localhost:81/site1/

    CustomLog logs/site1_access.log combined
    ErrorLog logs/site1_error.log
    </VirtualHost>

    ##SITE2
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    ServerName www.a5school.com
    ServerAlias a5school.com
    ProxyPass / http://localhost:81/site2/
    ProxyPassReverse / http://localhost:81/site2/

    CustomLog logs/site2_access.log combined
    ErrorLog logs/site2_error.log
    </VirtualHost>

    ##SITE3
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    #ServerName www.a5school.com
    ServerAlias site3.a5school.com
    ProxyPass / http://localhost:81/site3/
    ProxyPassReverse / http://localhost:81/site3/

    CustomLog logs/site3_access.log combined
    ErrorLog logs/site3_error.log
    </VirtualHost>

    ##SITE4
    <VirtualHost *>
    ProxyRequests Off
    ProxyPreserveHost On
    #ServerName www.a5school.com
    ServerAlias site4.a5school.com
    ProxyPass / http://localhost:81/site4/
    ProxyPassReverse / http://localhost:81/site4/

    CustomLog logs/site4_access.log combined
    ErrorLog logs/site4_error.log
    </VirtualHost>
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  10. #10
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Multiple Web Sites on one A5 WAS

    Pretty dang cool....

    Then you also realize that apache can also allow you to do load balancing.

    http://httpd.apache.org/docs/2.2/mod..._balancer.html

    All kinds of development and deployment scenarios.

    The localhost servers in this example quite certainly can be HyperV sessions.

    HyperV1 - Apache Proxy Server
    HyperV2 - MySQL Server
    HyperV3 - A5 Server 1
    HyperV4 - A5 Server 2
    HyperV5 - A5 Server N

    Frank - in his recent posts is showing that he is getting much more out of his HyperV even on a lessor power machine. http://msgboard.alphasoftware.com/al...07&postcount=9

    Zebra Host
    | # Srv | Mo. $ | Yearly $ | Ram | HD | Bandw |
    HyperV | 5 | 49.95 | 249.75 | 5GB | 125GB | 800GB |
    Basic Server | 1 | 249.95 | 249.95 | 2GB | 250GB | 2000GB |

    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  11. #11
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Michael

    all the fancy virtual guests can be run from free centos server using a XEN kernel for us poor folks

    apache and mysql are already there so you just need a base to load the alpha server on

    MOST virtual servers require you load/install with an iso image so why load xp then apache then mysql but it can be done xp or server 2003 already is a iso image but you can even create an iso if needed

    Greg

  12. #12
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Steve

    read your note about the security but found an issue trying to make an edit Looks like it drags the folder in twice

  13. #13
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    Yes, none of this "works" unless it all works, including security. Still testing.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  14. #14
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Could have sprung for a second app server license by now !!!
    but just more trouble brewing Alpha didn't cover the part about second nic or the router only coping with 1 port 80 very well

    Greg

  15. #15
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    More options to try

    set the apache server as a DMZ behind firewall
    to see if firewall is crimping down flow - don't think so though

    only options left is to BREAK the network bonding/bridging on windows server and add nic and second app server license
    but that is going to take more static ip addresses and using one to one nat routing Each data site would have it's own ip address

    I have already hand hacked the poor server to break the ssl port free from IIS

    Greg

  16. #16
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    After 24 hours of effort, it is my analysis that without specific modifications by Alpha, Alpha Five WAS cannot be run behind Apache or any other web server front-end.

    For those interested, the hurdle at the moment is displayed in Gregory's last post with an image attachment, where it says "myweb/myweb/". The fact is you can tell Apache what the DocumentRoot is, but I can find no way for Apache to tell ALPHA what the DocumentRoot is. So in each case where Alpha places a Form Submit button or other action involving a CallBack, the path or Form Action is based on what Alpha understands the DocumentRoot to be, what is set in the AlphaWAS configuration.

    Running from Apache, login totally fails under IE8 for some reason, but works from Firefox and Chrome. But the problem in the paragraph above has nothing to do with security, it has to do with what Alpha thinks is the path.

    I say this is "not possible" because even if the above is solved, there are going to be other issues. A couple of the guys on this conversation have overcome some issues, only to find other problems.

    BTW, I can see how everything might work if each web folder was run on a separate instance of AlphaWAS, allowing me to assign a different DocumentRoot to each website directly in Alpha's configuration. I may try this. This does not defeat the purpose, because the purpose was never to 'bypass' Alpha's licensing regarding Instances, it was to provide better security to the web application, and open up avenues for load balancing, etc.

    The fact is that Alpha does not support running their web server under Apache and they would have to officially support this, and make modifications, to allow it to happen, and that's not likely to happen.

    If you want to try this, the most recent Apache script below will work up to the point I described (I don't mean my specific URL's will work, I have already removed those from my DNS).

    I'd be glad to work with anyone that goes through the steps to test this and knows what they are doing, and has a good idea.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  17. #17
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Wink Re: Multiple Web Sites on one A5 WAS

    Steve

    If nothing else we gave it a big try You are right the directory return seems to be the issue I have been reading all day about any quirks in the mod_proxy and find nothing I am using Apache 1.3.7 or some older version right now and all works in the alpha document folder root only I have enabled security and found no problems logging in with firefox chrome or IE 7 edits to the data all work also

    Conclusion same as yours app server is the stopping point However what we have done - poor payback for the time spent is to find a way to get to the app server without IIS as windows XP can only support 1 website but will run apache and host headers in IIS on a windows server would pricey for some

    Final we just have to buy a app server licenses for each running event / web hit them with proxypass and it's done

    Guess dependent on the application it will give a place to use the OLD app servers we have licenses for - less demanding sites

    Greg
    doesn't mean I will give up though
    Last edited by glbaird; 01-16-2011 at 05:42 PM.

  18. #18
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Multiple Web Sites on one A5 WAS

    Hi all,

    I am getting the security to work on all of my grids. If the submit button is part of the grid it works. I have not tested a custom button though.

    Where I got stuck was when I was calling registration form. My registration is doing a lot even though it is simple.

    So I just made the link explicit http:\\mysite:81/myfolder/reg.a5w

    And it works.


    So on the the reasons why I am working to do this three reasons:

    1. Load balancing is absolutely critical to what I do:
    2. I see my development environment looking as follows:

    Dev Workstation:
    - Web App1
    - Web App2
    - Web App(n)
    - Web App2 (version2)
    - Web App3 (Experimental)

    Production Servers:
    - Web App1
    - Web App1 (testing)
    - Web App1 (Version2)

    Mirrored Production Server (load balancing)
    - Web App1
    - Web App1 (testing)

    3. With few lines of code change in the apache server I can adjust my development and production environments.

    4. Project folders inside of AlphaFive are not sufficient for managing this process. Too confusing and more of a headache than a help.

    5. Need to have truly robust developer license: It is a pain in the but to go looking for a WAS developer license just to do testing or to maximize pre-deployment resources. From my understanding there has never been a problem with using one WAS license to do pre-deployment and testing on, or to run small internet apps. However there is a lot of grey understanding here.

    I would think this is one of the areas that Alpha could make quite robust - both from a software and licensing standpoint.

    Thanks Steve and Greg for your help here.

    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170








    Quote Originally Posted by Steve Wood View Post
    After 24 hours of effort, it is my analysis that without specific modifications by Alpha, Alpha Five WAS cannot be run behind Apache or any other web server front-end.

    For those interested, the hurdle at the moment is displayed in Gregory's last post with an image attachment, where it says "myweb/myweb/". The fact is you can tell Apache what the DocumentRoot is, but I can find no way for Apache to tell ALPHA what the DocumentRoot is. So in each case where Alpha places a Form Submit button or other action involving a CallBack, the path or Form Action is based on what Alpha understands the DocumentRoot to be, what is set in the AlphaWAS configuration.

    Running from Apache, login totally fails under IE8 for some reason, but works from Firefox and Chrome. But the problem in the paragraph above has nothing to do with security, it has to do with what Alpha thinks is the path.

    I say this is "not possible" because even if the above is solved, there are going to be other issues. A couple of the guys on this conversation have overcome some issues, only to find other problems.

    BTW, I can see how everything might work if each web folder was run on a separate instance of AlphaWAS, allowing me to assign a different DocumentRoot to each website directly in Alpha's configuration. I may try this. This does not defeat the purpose, because the purpose was never to 'bypass' Alpha's licensing regarding Instances, it was to provide better security to the web application, and open up avenues for load balancing, etc.

    The fact is that Alpha does not support running their web server under Apache and they would have to officially support this, and make modifications, to allow it to happen, and that's not likely to happen.

    If you want to try this, the most recent Apache script below will work up to the point I described (I don't mean my specific URL's will work, I have already removed those from my DNS).

    I'd be glad to work with anyone that goes through the steps to test this and knows what they are doing, and has a good idea.

  19. #19
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    I will try with security in SQL, but will probably abandon the cause shortly after that and wait for V11.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  20. #20
    Member MichaelCarroll's Avatar
    Real Name
    Michael Carroll
    Join Date
    Feb 2008
    Posts
    467

    Default Re: Multiple Web Sites on one A5 WAS

    Steve,

    I am also thinking that anyplace that needs to have an explicit URL can be automated with aliases...
    [myroot] = http:\\mysite.com:81/m

    Regards,

    Michael Carroll

    www.redrocksbluesky.com
    www.theminimalistrunner.com
    michael.vision360@gmail.com
    435-275-5170

  21. #21
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    I think it is going to break down as the application grows and becomes more complex. There are references to "grid instances" for any ajax component, ajax callbacks, form Action, etc. And most of these are automated by Alpha within compiled code. I did all of my testing using my own Framework which is a comprehensive application with a little of everything.
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  22. #22
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Steve

    I did a bit more testing and all works without using sub-folders
    Proxy is pretty common in the web world so apache has it's place
    Windows server 2008 and IIS 7 will do some proxy but not fully

    There are quite a few more aspects to be worked out but version 11 may change some of it

    The app server is the only non standard part of the puzzle and being bound to run on windows is a drawback with it's cost getting a system that can handle dot net 4

    Ideal at this point is a Linux server with apache and mysql even a mail server for those that need it gives a person a reasonable system to work with leaving the app server on a windows box

    Greg

  23. #23
    "Certified" Alphaholic kkfin's Avatar
    Real Name
    Kenneth
    Join Date
    Dec 2006
    Location
    EU
    Posts
    1,519

    Default Re: Multiple Web Sites on one A5 WAS

    Quote Originally Posted by glbaird View Post
    Ideal at this point is a Linux server with apache and mysql even a mail server for those that need it gives a person a reasonable system to work with leaving the app server on a windows box
    When running own Linux/Apache/MySql LAM(P) machine it is also possible to install Alpha APP Server to this same Linux machine so you don't need a separate machine at all.

  24. #24
    Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,827

    Default Re: Multiple Web Sites on one A5 WAS

    And exactly how do you run AlphaWAS on a Linux server?
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  25. #25
    Member
    Real Name
    Gregory Baird
    Join Date
    Oct 2007
    Location
    Northern California
    Posts
    74

    Default Re: Multiple Web Sites on one A5 WAS

    Quote Originally Posted by kkfin View Post
    When running own Linux/Apache/MySql LAM(P) machine it is also possible to install Alpha APP Server to this same Linux machine so you don't need a separate machine at all.

    How is this done? Dual boot won't work and I would be afraid to even try WINE or some other emulator I do have both on running on one box but it is a Linux cloud server with Server 2003 as a guest for the app server

    This still costs about the same by the time you build a brute for the cloud server Linux will run on about any little box you were going to toss aside that leaves some old xp box for the app server

    Greg

  26. #26
    "Certified" Alphaholic kkfin's Avatar
    Real Name
    Kenneth
    Join Date
    Dec 2006
    Location
    EU
    Posts
    1,519

    Default Re: Multiple Web Sites on one A5 WAS

    Quote Originally Posted by Steve Wood View Post
    And exactly how do you run AlphaWAS on a Linux server?
    You can use Oracle's Virtualbox for Was
    Use also an extra ethernet-card for Virtualbox.


    • Install Linux LAMP Server. Test it works like you want.
    • Install Virtualbox to Linux
    • Install Windows OS to Virtualbox
    • Install WAS to Windows OS in Virtualbox


    After this you have full featured Linux machine running WAS(and Linux).
    You can run several separate Virtualboxes in same Linux machine if you want. They can have all different configuration and OS.
    So combination Linux + Virtualbox with WAS + Virtualbox with Alpha development enviroment is possible as any other combination.

  27. #27
    "Certified" Alphaholic
    Real Name
    eric
    Join Date
    Mar 2009
    Location
    Amsterdam
    Posts
    1,284

    Default Re: Multiple Web Sites on one A5 WAS

    After all this work is done and running (BTW great job!) , check care full that your V10 WAS license keeps running or you have the result of a virtual business and floating WAS.
    Maybe better to run in save mode on IIS and V11. Benefit you can stay in bed save hours of work and questions will it be save and secure?.
    Alpha is a 100% Windows product that will not change is my opion secondly with IIS you have all the charm of webfarms load balance fail over ::Net functions etc.


    m2p.

  28. #28
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,253

    Default Re: Multiple Web Sites on one A5 WAS

    Quote Originally Posted by kkfin View Post
    You can use Oracle's Virtualbox for Was
    Use also an extra ethernet-card for Virtualbox.


    • Install Linux LAMP Server. Test it works like you want.
    • Install Virtualbox to Linux
    • Install Windows OS to Virtualbox
    • Install WAS to Windows OS in Virtualbox


    After this you have full featured Linux machine running WAS(and Linux).
    You can run several separate Virtualboxes in same Linux machine if you want. They can have all different configuration and OS.
    So combination Linux + Virtualbox with WAS + Virtualbox with Alpha development enviroment is possible as any other combination.
    This is not getting WAS/AFAS to run on linux, this is installing WAS/AFAS on a virtual windows machine.

  29. #29
    "Certified" Alphaholic kkfin's Avatar
    Real Name
    Kenneth
    Join Date
    Dec 2006
    Location
    EU
    Posts
    1,519

    Default Re: Multiple Web Sites on one A5 WAS

    Quote Originally Posted by madtowng View Post
    This is not getting WAS/AFAS to run on linux, this is installing WAS/AFAS on a virtual windows machine.
    You got the point

  30. #30
    Member
    Real Name
    Lee Knoch
    Join Date
    Mar 2011
    Location
    Seattle, WA, USA
    Posts
    5

    Default Re: Multiple Web Sites on one A5 WAS

    So, before I run down this path and join the fray:

    I have VPS running Windows Server 2008 R2 with IIS v7.5. It seems I should be able to configure IIS to detect multiple domains and point different domain traffic to different ports (e.g., 81, 82, 83 ...). Then I'd run multiple AFWS' listening on different ports. e.g. site1 is redirected to AFWS running on port 81 (AFWS:81), site2 is redirected to AFWS:82, site2 is redirected to AFWS:83, etc.

    Should this work?

Similar Threads

  1. How to run multiple web sites
    By JH10 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 101
    Last Post: 09-22-2011, 02:41 AM
  2. Does the server work for multiple web sites?
    By Corinthian in forum Application Server Version 10 - Web/Browser Applications
    Replies: 7
    Last Post: 11-19-2010, 07:44 AM
  3. Publishing multiple Sites on same server
    By dkeenen in forum Application Server Version 8
    Replies: 5
    Last Post: 02-25-2008, 10:19 AM
  4. Two Web sites on Software Internationalisation
    By Jean-P. Bédard in forum Alpha Five Version 4
    Replies: 0
    Last Post: 09-04-2001, 02:05 PM

Bookmarks

Posting Permissions

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