Re: replace an ip @ by a "normal" URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 webmaster@xxxxxxxxxxxxxxxxxxxxxx
> <mailto:webmaster@xxxxxxxxxxxxxxxxxxxxxx>
> # 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 webmaster@xxxxxxxxxxxxxxx <mailto:webmaster@xxxxxxxxxxxxxxx>
> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux