-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!
I need help with Apache2 and Virtual Host.
When I run my application in the http://localhost:8080/showGroup.html all is fine.
But if I run in my virtual host:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName myapplication.wiface.com.br
DocumentRoot E:/projects/native/native-web/src/main/htdocs/myapplication-web.com.br
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyVia Block
ProxyPassReverse / http://127.0.0.1:8080/
ProxyTimeout 120
RewriteEngine On
RewriteLogLevel 9
RewriteLog logs/myapplication.wiface.com.br
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*) /index.html
RewriteCond %{REQUEST_URI} \/img
RewriteRule ^(.*) $1
RewriteCond %{REQUEST_URI} \.(css|js)$
RewriteRule ^(.*) $1
RewriteCond %{REQUEST_URI} ^/.*
RewriteRule /(.*) http://127.0.0.1:8080/$1 [P,L]
</VirtualHost>
The CSS and JS don't load!
I need to know where I am wrong.
Please, help me.
Hmm,
have you running the needed servlet-container too??
Like a tomcat.
Stephan
Hi!
I resolved the problem.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName myapplication.wiface.com.br
DocumentRoot E:/projects/native/native-web/src/main/htdocs/myapplication-web.com.br
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyVia Block
ProxyPassReverse / http://127.0.0.1:8080/
ProxyTimeout 120
RewriteEngine On
RewriteLogLevel 9
RewriteLog logs/myapplication.wiface.com.br
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*) /index.html
RewriteCond %{REQUEST_URI} \/zkau\/*
RewriteRule /(.*) http://127.0.0.1:8080/$1 [P,L]
RewriteCond %{REQUEST_URI} \/img
RewriteRule ^(.*) $1
RewriteCond %{REQUEST_URI} \.(css|js)$
RewriteRule ^(.*) $1
RewriteCond %{REQUEST_URI} ^/.*
RewriteRule /(.*) http://127.0.0.1:8080/$1 [P,L]
</VirtualHost>
can you make bold the changes? thanks
A bit off topic, but you would be better off with ProxyPass and AJP13, I think. Something like this:
#ProxyRequests On (commented out or set to Off) <VirtualHost... ProxyPass /myapp/images ! ProxyPass /myapp/script ! ProxyPass /myapp/css ! ProxyPass /myapp ajp://localhost:8009/myapp/ </VirtualHost>
(images, css, script are static resources served by Apache)
Research ProxyPass, mod_proxy, mod_proxy_ajp before experimenting!
/Daryl
Asked: 2009-03-12 12:32:51 +0800
Seen: 432 times
Last updated: Mar 12 '09
how to increse the font size of a TAB label
re: font changes when I load the 3.5.0
Component style change (button and listbox): how to change them?
Tabbox with mold="accordion" has scroll problems
onChanging event not everytime fired in Combobox
Session.invalidate() raises an IllegalStateException under Jetty