Apache problem witch DocumentRoot creation virtual domain

Issues related to applications and software problems
Locked
czarekplpl
Posts: 53
Joined: 2014/08/23 07:57:52

Apache problem witch DocumentRoot creation virtual domain

Post by czarekplpl » 2014/08/23 08:07:29

Hello.
I configured virtual domain as follow:

Code: Select all

<VirtualHost 121.40.125.1:80>
    ServerAdmin admin@1cdeli.com.cn
    DocumentRoot var/www/html/1cdeli.com.cn/public_html/
    ServerName http://www.1cdeli.com.cn
    ServerAlias 1cdeli.com.cn
    ErrorLog logs/1centdeli.com.cn-error_log
    CustomLog logs/1cdeli.com.cn-access_log common
</VirtualHost>
and during restart apache shows this warning:

Code: Select all

[root@iZ23adihnzwZ conf]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Warning: DocumentRoot [/etc/httpd/var/www/html/1cdeli.com.cn/public_html/] does not exist
Why apache is looking for DocumentRoot in his root catalog while in httpd.config is like this:

Code: Select all

DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Now the browser shows only this:

Code: Select all

The requested URL / was not found on this server
Do anybody can help mi with this ???

Rgds
Czarek.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Apache problem witch DocumentRoot creation virtual domai

Post by TrevorH » 2014/08/23 08:24:14

DocumentRoot var/www/html/1cdeli.com.cn/public_html/
You're missing the leading / on /var/www/html/1cdeli.com.cn/public_html/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

czarekplpl
Posts: 53
Joined: 2014/08/23 07:57:52

Re: Apache problem witch DocumentRoot creation virtual domai

Post by czarekplpl » 2014/08/23 09:00:21

Does not work:

Code: Select all

Starting httpd: Warning: DocumentRoot [/on/var/www/1cdeli.com.cn/public_html/] does not exist

czarekplpl
Posts: 53
Joined: 2014/08/23 07:57:52

Re: Apache problem witch DocumentRoot creation virtual domai

Post by czarekplpl » 2014/08/23 09:56:12

Hello.
Now I changed configuration a little. And virtual server appeared (1cdeli.com.cn) but alias www.1cdeli.com.cn is still invisible.

Code: Select all

<VirtualHost *:80>
    ServerAdmin admin@1cdeli.com.cn
    DocumentRoot /var/www/1cdeli.com.cn/public_html/
    ServerName 1cdeli.com.cn
    ServerAlias www.1cdeli.com.cn
    ErrorLog logs/1centdeli.com.cn-error_log
    CustomLog logs/1cdeli.com.cn-access_log common
</VirtualHost>
Do you have any idea?????

deener
Posts: 1
Joined: 2015/04/25 19:10:30

Re: Apache problem witch DocumentRoot creation virtual domai

Post by deener » 2015/04/25 19:13:40

@czarekplpl -- I'm facing the same problem.. how did you get this to work?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Apache problem witch DocumentRoot creation virtual domai

Post by gerald_clark » 2015/04/25 21:15:46

Don't hijack old threads.
Start a new thread for your problem. Include information useful for assisting in troubleshooting.
Refer to the old thread only if you are sure it is actually related. You have given no information to suggest it is.

Locked