Difference between revisions of "Add New Site to Lucee (formerly Railo) VPS"
(Created page with "__FORCETOC__ If your VPS has the WCP or cPanel installed, the server automatically configures a new site in Railo when the domain is added through the control panel. However, ...") |
m (Jakeh moved page Add New Site to Railo VPS to Add New Site to Lucee (formerly Railo) VPS: updating to include Lucee references) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__FORCETOC__ | __FORCETOC__ | ||
− | If your VPS has the WCP or cPanel installed, the server automatically configures a new site in Railo when the domain is added through the control panel. However, if your server doesn't have a control panel and you need to add a site to your server manually, follow the appropriate instructions below. | + | If your VPS has the WCP or cPanel installed, the server automatically configures a new site in Lucee (formerly Railo) when the domain is added through the control panel. However, if your server doesn't have a control panel and you need to add a site to your server manually, follow the appropriate instructions below. |
==Windows VPS - IIS / Tomcat== | ==Windows VPS - IIS / Tomcat== | ||
Line 6: | Line 6: | ||
#Add a new virtual directory named "jakarta" to your new site, and have it use "C:\railo\connector" as the physical path. | #Add a new virtual directory named "jakarta" to your new site, and have it use "C:\railo\connector" as the physical path. | ||
#Add the site as a "Host" in Railo's server.xml file, located at c:\railo\tomcat\conf\server.xml. (Be sure to make a backup of the file first.) <br />When you open the file in notepad, press ctrl+f and search for "<Host name=" (no quotes). Then add the host entry for the new site to this section. For example, your new host entry would look similar to this:<pre style="white-space: pre-wrap"><nowiki><Host name="newdomainname.com" appBase="webapps" unpackWARs="false" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias></Alias> <Context path="" docBase="c:\home\newdomainname.com\wwwroot\"/> </Host></nowiki></pre>You'd just need to be sure to replace the host name and the path in the context docbase with the correct info. | #Add the site as a "Host" in Railo's server.xml file, located at c:\railo\tomcat\conf\server.xml. (Be sure to make a backup of the file first.) <br />When you open the file in notepad, press ctrl+f and search for "<Host name=" (no quotes). Then add the host entry for the new site to this section. For example, your new host entry would look similar to this:<pre style="white-space: pre-wrap"><nowiki><Host name="newdomainname.com" appBase="webapps" unpackWARs="false" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias></Alias> <Context path="" docBase="c:\home\newdomainname.com\wwwroot\"/> </Host></nowiki></pre>You'd just need to be sure to replace the host name and the path in the context docbase with the correct info. | ||
+ | #*If you need to add an alias to the domain, you would add it within the "Host" entry in an "Alias" tag like below" <pre><Alias>www.domain1.com</Alias></pre> | ||
#Once this has been done, restart the Apache Tomcat Railo service and your site will begin processing CFML files through Railo. | #Once this has been done, restart the Apache Tomcat Railo service and your site will begin processing CFML files through Railo. | ||
Line 14: | Line 15: | ||
#After saving the file, restart Railo using the command below, and your new domain will start processing CFML: <pre>service railo_ctl restart</pre> | #After saving the file, restart Railo using the command below, and your new domain will start processing CFML: <pre>service railo_ctl restart</pre> | ||
+ | ==Accessing the Lucee (formerly Railo) Web Admin for my new site== | ||
+ | The URL for any new site (context) you add to Lucee, will be: http://newsite.com/railo-context/admin/web.cfm ''(replace newsite.com with the actual domain name)'' | ||
+ | |||
+ | ==What is the location for my Lucee (formerly Railo) Server Administrator== | ||
+ | On the desktop of your VPS, you can access the Lucee Server Administrator at this location: http://localhost/railo-context/admin/server.cfm | ||
+ | |||
+ | If your server still runs Railo, you would use this: http://localhost/railo-context/admin/server.cfm | ||
+ | |||
+ | If you are running Lucee on Linux or just wish to access the Server Administrator remotely, replace "localhost" with the IP of your server or a domain name running on your server. | ||
+ | |||
+ | [[Category:Lucee]] | ||
[[Category:Railo]] | [[Category:Railo]] | ||
[[Category:VPS]] | [[Category:VPS]] |
Latest revision as of 18:10, 15 April 2015
If your VPS has the WCP or cPanel installed, the server automatically configures a new site in Lucee (formerly Railo) when the domain is added through the control panel. However, if your server doesn't have a control panel and you need to add a site to your server manually, follow the appropriate instructions below.
Contents
Windows VPS - IIS / Tomcat
- Add the site in IIS.
- Add a new virtual directory named "jakarta" to your new site, and have it use "C:\railo\connector" as the physical path.
- Add the site as a "Host" in Railo's server.xml file, located at c:\railo\tomcat\conf\server.xml. (Be sure to make a backup of the file first.)
When you open the file in notepad, press ctrl+f and search for "<Host name=" (no quotes). Then add the host entry for the new site to this section. For example, your new host entry would look similar to this:<Host name="newdomainname.com" appBase="webapps" unpackWARs="false" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias></Alias> <Context path="" docBase="c:\home\newdomainname.com\wwwroot\"/> </Host>
You'd just need to be sure to replace the host name and the path in the context docbase with the correct info.- If you need to add an alias to the domain, you would add it within the "Host" entry in an "Alias" tag like below"
<Alias>www.domain1.com</Alias>
- If you need to add an alias to the domain, you would add it within the "Host" entry in an "Alias" tag like below"
- Once this has been done, restart the Apache Tomcat Railo service and your site will begin processing CFML files through Railo.
Linux VPS - Apache (httpd) / Tomcat
- Add the site to Apache. If your server has cPanel but is not integrated with Railo, you can still add the site to Apache via cPanel.
- Open your server's Tomcat server.xml file (using vi, pico, etc). This currently defaults to /opt/railo/tomcat/conf/server.xml.
- Add a new host entry for the site similar to this:
<Host name="newdomainname.com" appBase="webapps" unpackWARs="false" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias></Alias> <Context path="" docBase="/home/newuser/public_html"/> </Host>
Be sure to use the correct domain name/path in the example above. - After saving the file, restart Railo using the command below, and your new domain will start processing CFML:
service railo_ctl restart
Accessing the Lucee (formerly Railo) Web Admin for my new site
The URL for any new site (context) you add to Lucee, will be: http://newsite.com/railo-context/admin/web.cfm (replace newsite.com with the actual domain name)
What is the location for my Lucee (formerly Railo) Server Administrator
On the desktop of your VPS, you can access the Lucee Server Administrator at this location: http://localhost/railo-context/admin/server.cfm
If your server still runs Railo, you would use this: http://localhost/railo-context/admin/server.cfm
If you are running Lucee on Linux or just wish to access the Server Administrator remotely, replace "localhost" with the IP of your server or a domain name running on your server.