Created
May 11, 2012 22:11
-
-
Save javajosh/2662712 to your computer and use it in GitHub Desktop.
My first attempt to combine virtual host with mod_proxy. It doesn't work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# domain: cmwmini.com | |
# public: /home/josh/public/cmwmini.com/ | |
<VirtualHost cmwmini.com:80> | |
# Admin email, Server Name (domain name), and any aliases | |
ServerAdmin [email protected] | |
ServerName www.cmwmini.com | |
ServerAlias cmwmini.com | |
# Index file and Document Root (where the public files are located) | |
DirectoryIndex index.html index.php | |
#DocumentRoot /home/josh/public/cmwmini.com/public | |
# Log file locations | |
LogLevel warn | |
ErrorLog /home/josh/public/cmwmini.com/log/error.log | |
CustomLog /home/josh/public/cmwmini.com/log/access.log combined | |
ProxyPass / http://localhost:8080/cmwmini | |
ProxyPassReverse / http://localhost:8080/cmwmini | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<Server port="8005" shutdown="SHUTDOWN"> | |
<Listener className="org.apache.catalina.core.JasperListener"/> | |
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/> | |
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> | |
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> | |
<GlobalNamingResources> | |
<Resource name="UserDatabase" auth="Container" | |
type="org.apache.catalina.UserDatabase" | |
description="User database that can be updated and saved" | |
factory="org.apache.catalina.users.MemoryUserDatabaseFactory" | |
pathname="conf/tomcat-users.xml"/> | |
</GlobalNamingResources> | |
<Service name="Catalina"> | |
<Connector port="8081" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
URIEncoding="UTF-8" | |
redirectPort="8443"/> | |
<Connector port="8080" | |
proxyName="cmwmini.com" | |
proxyPort="80"/> | |
<!-- | |
<Connector executor="tomcatThreadPool" | |
port="8080" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
redirectPort="8443" /> | |
--> | |
<!-- | |
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" | |
maxThreads="150" scheme="https" secure="true" | |
clientAuth="false" sslProtocol="TLS" /> | |
--> | |
<Engine name="Catalina" defaultHost="localhost"> | |
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" | |
resourceName="UserDatabase"/> | |
<Host name="localhost" appBase="webapps" | |
unpackWARs="true" autoDeploy="true" | |
xmlValidation="false" xmlNamespaceAware="false"> | |
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" | |
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> | |
</Host> | |
</Engine> | |
</Service> | |
</Server> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment