Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, I hope this is the right place to ask this question. I am confused if we have httpd.conf file as apache configuration file then what does httpd.conf,v files suppose ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! pratapsingh's Avatar
    Join Date
    Feb 2009
    Posts
    82

    Exclamation What does httpd.conf,v file suppose to mean?


    Hello,

    I hope this is the right place to ask this question. I am confused if we have httpd.conf file as apache configuration file then what does httpd.conf,v files suppose to mean. It has also virtual host entry as httpd.conf file. I found one strange issue with as I have cPanel running on my server, for some domain virtual host entries are missing from the main httpd.conf file these entries are available in httpd.conf,v file.Is there any link between these too?

    I tried to find out the importance of this file but I failed any help in this regard would be really appreciated.

  2. #2
    Linux Newbie
    Join Date
    Aug 2009
    Location
    Mumbai, India
    Posts
    103
    Hi,

    I assume you've already guessed that httpd.conf,v is not a default file of the apache package. Going by your remark that you have found some virtual hosts configured in this httpd.conf,v file, I assume this might be a file created specifically to include the settings for Virtual hosts. Reason might be segregation and managebility of virtual hosts config.

    Just check to see if there is any Include directive in the httpd.conf file which either points to the httpd.conf,v file or the directory that contains the said file. If yes, then this it means this file is part of the web server config & is called by the httpd.conf file when the apache process starts & could be called sort of an extension to the httpd.conf file

    That's perhaps the only reason that comes to mind...

    --Syd

  3. #3
    Just Joined! pratapsingh's Avatar
    Join Date
    Feb 2009
    Posts
    82
    Hello,

    No it (/usr/local/apache/conf/httpd.conf) does not have any include directive for httpd.conf,v file. That is why I am confused. Still my pages are loading fine. Somthing we are missing in this regard.
    Any way thanks for your reply.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Aug 2009
    Location
    Mumbai, India
    Posts
    103
    Hi,

    Perhaps you could provide the ls -l output for the following directories:
    /usr/local/apache/conf/ &
    /usr/local/apache/conf.d ( if it exists )

    You could as well attach the httpd.conf file

    --Syd

  6. #5
    Linux Newbie
    Join Date
    Sep 2004
    Location
    UK
    Posts
    161
    Do a less on the file and if it looks like/has entries like (does'nt have to exact ) :

    Code:
    head     1.1;
    branch   1.1.1;
    then its a CVS archive
    In a world without walls and fences, who needs Windows and Gates?

  7. #6
    Just Joined! pratapsingh's Avatar
    Join Date
    Feb 2009
    Posts
    82
    Here is the output of ls-l of /usr/local/apache/conf/
    --w----r-T 1 root root 47 Jun 14 11:37 access.conf
    -rw-r--r-- 1 root root 268836 Oct 8 09:48 diff.txt
    -rw-r--r-- 1 root root 2011 Apr 29 20:18 highperformance.conf
    -rw-r--r-- 1 root root 2007 Jul 2 13:14 highperformance-std.conf
    -rw------- 1 root root 159345 Oct 13 20:56 httpd.conf
    -rw------- 1 root root 28863 Oct 13 20:58 httpd.conf.datastore
    -rw------- 1 root root 35855 Jul 2 13:43 httpd.conf.ea-make-install
    -rw------- 1 root root 36822 Jul 2 13:43 httpd.conf.ea-make-install,v
    -rw------- 1 root root 74866 Jul 2 13:13 httpd.conf.ea-orig
    -r-------- 1 root root 472269 Oct 13 20:56 httpd.conf,v
    -rw-r--r-- 1 root root 35536 Jul 2 13:14 httpd-std.conf
    drwxr-xr-x 2 root root 4096 Jul 5 08:08 includes/
    -rw-r--r-- 1 root root 261 Jul 2 13:17 jk.conf
    -rw-r--r-- 1 root root 12958 Apr 29 20:18 magic
    -rw-r--r-- 1 root root 29735 Oct 9 23:40 mime.types
    -rw------- 1 root root 649 Jul 2 13:20 modsec2.conf
    -rw------- 1 root root 0 Jul 2 13:20 modsec2.user.conf
    -rw------- 1 root root 26439 Jul 2 13:20 modsec2.user.conf.default
    -rw------- 1 root root 0 Jul 2 13:20 modsec2.user.conf.none
    -rw-r--r-- 1 root root 6 Oct 10 22:29 php5.version
    -rw-r--r-- 1 root root 581 Oct 10 22:29 php.conf
    -rw------- 1 root root 83 Oct 10 22:29 php.conf.cache
    -rw-r--r-- 1 root root 62 Oct 10 22:29 php.conf.yaml
    -rw-r--r-- 1 root root 6 Oct 12 00:36 php.version
    drwx--x--x 2 root root 4096 Oct 9 18:02 sites/
    --w----r-T 1 root root 47 Jun 14 11:37 srm.conf
    -rw-r--r-- 1 root root 940 Oct 8 08:23 ssl1.crt
    -rw-r--r-- 1 root root 891 Oct 8 08:24 ssl1.key
    -rw-r--r-- 1 root root 11034 Apr 29 20:18 ssl.conf
    drwxr-xr-x 2 root root 4096 Jun 14 11:58 ssl.crt/
    drwxr-xr-x 2 root root 4096 Jun 14 11:58 ssl.key/
    -rw-r--r-- 1 root root 11016 Jul 2 13:14 ssl-std.conf
    =====================================
    here is outpout off less command
    -------------
    1.168
    date 2009.10.13.04.37.53; author root; state Exp;
    branches;
    next 1.167;
    ==================
    I don't think that it's a CVS archive. However can you please describe us about CVS archive ?

    Thanks

  8. #7
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Actually, the file is a CVS file (specifically a history of versions file, I mean, the registry of changes of a specific file in the repository). Probably the directory contains a repository created for the project or something like that.

    If you are not using CVS, you can delete the file without problems. But, according to the header of the file, there are recent modifications.

    EOF
    EOF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •