On 8/27/2012 4:42 PM, Ijlal EL HAZITI wrote:
> Hello everybody
> I've just installed a webapp (sakai precisely) in a CentOs 6.2 server.
> sakai is accessivle via *@ip:8080/portal, *and I need to replace that
> adresse by a normal URL: www.exapmle.com/sakai
> <http://www.exapmle.com/sakai>
> 
> I've already replaced:
> 
> *#<VirtualHost *:80>
> # ServerAdmin webmas...@dummy-host.example.com
> <mailto:webmas...@dummy-host.example.com>
> # DocumentRoot /www/docs/dummy-host.example.com
> <http://dummy-host.example.com>
> # ServerName dummy-host.example.com <http://dummy-host.example.com>
> # ErrorLog logs/dummy-host.example.com-error_log
> # CustomLog logs/dummy-host.example.com-access_log common
> #</VirtualHost>*
> 
> by
> *
> <VirtualHost @ip:80>
> ServerAdmin webmas...@cmcf.men.gov.ma <mailto:webmas...@cmcf.men.gov.ma>
> DocumentRoot /www/cmcf
> ServerName cmcf.men.gov.ma <http://cmcf.men.gov.ma>
> ErrorLog logs/cmcf.men.gov.ma-error_log
> CustomLog logs/cmcf.men.gov.ma-access_log common
> </VirtualHost>*
> 
> (I also tried *<VirtualHost @ip:8080> *since my webapp is accessible via
> @ip:8080/portal but in vain)**
> in the file: /etc/httpd/conf/httpd.conf but while retarting the httpd
> service, I get that error:
> 
> [root@cmcf ~]# service httpd restart
> ArrĂȘt de httpd :                                           [  OK  ]
> DĂ©marrage de httpd : Warning: DocumentRoot /www/cmcf 
> <http://www.commentcamarche.net/www/cmcf> does not exist
>                                                            [  OK  ]

The error message seems to be accurate; you have defined the
DocumentRoot as /www/cmcf, but you created the directory in
/var/www/cmcf, from what I gather. In other words, you need to prepend
"/var" to your existing DocumentRoot path.

> even if I've already created the "cmcf" directory in /var/www and gave
> it all required permissions.
> 
> I'll be pleased to get any of your suggestions.
> Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to