Find the answer to your Linux question:
Results 1 to 4 of 4
HI guys I messing round with trac using fedora I doing fine until this point Create a config file for Apache and this what I need to put and modify ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    19

    how would i do this (Create a config file for Apache)

    HI guys I messing round with trac using fedora I doing fine until this point

    Create a config file for Apache and this what I need to put and modify to meets my settings


    NameVirtualHost *:9091

    <VirtualHost *:9091>

    DocumentRoot /var/www/trac/my_project
    ServerName my_server_name
    ErrorLog logs/trac_error_log
    CustomLog logs/trac_access_log common

    <Directory "/var/www/trac/my_project">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    <Location />
    SetEnv PYTHON_EGG_CACHE /usr/share/trac/plugin-cache
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/www/trac/my_project
    PythonOption TracUriRoot /
    </Location>

    </VirtualHost>


    Do I simply add this within the /etc/httpd/conf/httpd.conf

    if not how would I go about doing this

    Thanks
    Tom

  2. #2
    Just Joined!
    Join Date
    Mar 2011
    Location
    India
    Posts
    14
    I think u just have to put it in /etc/httpd/conf/httpd.conf....

  3. #3
    Linux Newbie
    Join Date
    Nov 2008
    Location
    Tokyo, Japan
    Posts
    243
    Yeah, just add it to /etc/http.d/conf/httpd.conf, unless the "Trac" manual specifically tells you to add it to some other file.

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    Some distributions will have a directory called extras in the Apache configuration directory and in there a file called vhosts will exist. This is the preferred place to put this information for these distributions. You may need to uncomment the include line near the bottom of the httpd.conf file.

    Other distributions provide a directory called vhosts.d and their preferred method is a file per virtual host within this directory.

    In all cases, using httpd.conf directly will work but it can lead to very unwieldy configuration file if you have many virtual hosts.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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