Easy for the knowledgable !!!string must be an absolute path, or 'none' it's

Discussion in 'Apache' started by biddersspot, Feb 7, 2008.

  1. #1
    Apache server error

    Starting httpd: Syntax error on line 1042 of /etc/httpd/conf/httpd.conf:
    format string must be an absolute path, or 'none'

    I realize this is a small error... 1042 is the bottom line (empty)

    DocumentRoot /home/gary1/public_html
    ErrorLog /home/gary1/logs/error_log
    CustomLog /home/gary1/logs/access_log common
    ScriptAlias /cgi-bin/ /home/gary1/cgi-bin/
    <Directory /home/gary1/public_html>
    AllowOverride All
    Options Indexes IncludesNOEXEC FollowSymLinks
    allow from all
    </Directory>
    SSLEngine on
    </VirtualHost>
    RewriteLogLevel 3
    RewriteLog "/var/log/httpd/rewrite.log"
    VirtualDocumentRoot 63.22.654.213

    So what do I add here
     
    biddersspot, Feb 7, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    Believe it's expecting a path. /home/gary1/public_html
    or whereever you are wanting to point it.
     
    shallowink, Feb 7, 2008 IP
  3. biddersspot

    biddersspot Peon

    Messages:
    380
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I will just add this to the bottom and see the result...thanks for your input
     
    biddersspot, Feb 7, 2008 IP
  4. biddersspot

    biddersspot Peon

    Messages:
    380
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I just added this

    </VirtualHost>
    RewriteLogLevel 3
    RewriteLog "/var/log/httpd/rewrite.log"
    VirtualDocumentRoot 624.22.1765.213
    /home/gary1/public_html

    and received the same response..
     
    biddersspot, Feb 7, 2008 IP
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #5
    eh make it like so:
    VirtualDocumentRoot /home/gary1/public_html


    VirtualDocumentRoot is a path...not an IP address.
     
    shallowink, Feb 7, 2008 IP
  6. biddersspot

    biddersspot Peon

    Messages:
    380
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    received this

    Failed to start apache :

    Starting httpd: [Thu Feb 07 18:54:02 2008] [warn] NameVirtualHost 64.22.675.213:80 has no VirtualHosts
    [FAILED]
     
    biddersspot, Feb 7, 2008 IP
  7. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #7
    I would have to see your httpd.conf to tell you whats wrong with the VirtualHosts.
     
    shallowink, Feb 7, 2008 IP
  8. biddersspot

    biddersspot Peon

    Messages:
    380
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for the offear shallowink the problem has been fixed the problem was in ssl not being configured right thats again
     
    biddersspot, Feb 8, 2008 IP