I've just installed a webapp (sakai precisely) in a CentOs 6.2 server. sakai is accessible via @ip:8080/portal, and I need to replace that adresse by a normal URL: www.exapmle.com/sakai
I've already replaced:
#<VirtualHost *:80> # ServerAdmin firstname.lastname@example.org # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost>
<VirtualHost @ip:80> ServerAdmin webmaster@my_site.com DocumentRoot /var/www/cmcf ServerName my_site.com ErrorLog logs/my_site.com-error_log CustomLog logs/my_site.com-access_log common </VirtualHost>
(I also tried
<VirtualHost @ip:8080> since my webapp is accessible via @ip:8080/portal but in vain)
but when I try to reach sakai from the browser, I get the 404 error:
**Not Found The requested URL /portal was not found on this server. Apache/2.2.15 (CentOS) Server at cmcf.men.gov.ma Port 80**
I also tried to make "/opt/apache-tomcat-7.0.29"(where sakai is deployed) the DocumentRoot, (It is probably a very huge mistake, but it's the first time I manage apache, so...) and I've got the same 404 error.
I'll be pleased to get any of your suggestions.