07 Oct 2013
I recently moved to Digital Ocean for web hosting as their SSD droplets were higher performing than any other VPS in the price range. With that move and the performance increase, I also consolidated many of my websites to one server. To use apache to reverse proxy multiple domains on one server, use the following example and add it to the bottom of your /etc/httpd/conf/httpd.conf file.
NameVirtualHost *:80
<VirtualHost *:80 >
ServerName www .domain1 .com
ServerAlias domain1 .com
DocumentRoot /var /www /html /domain1
</VirtualHost >
<VirtualHost *:80 >
ServerName www .domain2 .com
ServerAlias domain2 .com
DocumentRoot /var /www /html /domain2
</VirtualHost >
<VirtualHost *:80 >
ServerName domain3 .us
ServerAlias www .domain3 .us domain3 .com
DocumentRoot /var /www /html /domain3
</VirtualHost >
05 Oct 2013
Found an alternative way to deploy to Weblogic with Gradle.
apply plugin: 'groovy'
apply plugin: 'jetty'
apply plugin: 'eclipse'
apply plugin: 'maven'
//-- weblogic deployment
configurations {
weblogic
}
dependencies {
weblogic files ( "${System.getenv()['MW_HOME']}/wlserver/server/lib/weblogic.jar" ,
"${System.getenv()['MW_HOME']}/wlserver/server/lib/webservices.jar" ,
"${System.getenv()['MW_HOME']}/modules/features/weblogic.server.modules_10.3.5.0.jar" )
}
task deployToWeblogic ( dependsOn: 'war' ) << {
def war = System . properties [ 'war' ] == null ? "project.war" : System . properties [ 'war' ]
def url = System . properties [ 'url' ] == null ? "t3://localhost:8080" : System . properties [ 'url' ]
def user = System . properties [ 'user' ] == null ? "weblogic" : System . properties [ 'user' ]
def password = System . properties [ 'password' ] == null ? "weblogic" : System . properties [ 'password' ]
ant . taskdef ( name: 'wldeploy' ,
classname: 'weblogic.ant.taskdefs.management.WLDeploy' ,
classpath: configurations . weblogic . asPath )
ant . wldeploy ( action: 'deploy' ,
source: "$war" ,
name: "portal" ,
adminurl: "$url" ,
user: "$user" ,
password: "$password" ,
upload: "true" ,
targets: "AdminServer" ,
verbose: 'true' ,
debug: 'false' )
}
$ MW_HOME = /u01/apps/oracle/middleware
$ GRADLE_OPTS = "-Xmx2048m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled"
$ ./gradlew deployToWeblogic -Durl = t3://productionserver:8080 -Duser = mchammer -Dpassword = canttouchthis --stacktrace