• Apache的配置


    配置http访问站点

    编辑httpd.conf文件
     
    #方式一:配置虚拟主机
    <VirtualHost localhost>
      #ServerAdmin luowei010101@gmail.com
      DocumentRoot "D:/javascript/js_projects"
      #ServerName vvvv.com
      ErrorLog "D:/javascript/js_projects/error.log"
      
      <Directory "D:/javascript/js_projects">
         Options Indexes FollowSymLinks
         AllowOverride None
         Order allow,deny
         Allow from all
      </Directory>
    </VirtualHost>
     
    #==========================================
    #方式二:配置目录别名
    Alias /js_test/  "D:/javascript/js_projects/test/"
    <Directory  "D:/javascript/js_projects/test">
       Options Indexes MultiViews 
       AllowOverride None 
       Order allow,deny 
       Allow from all 
    </Directory>
    #==========================================

    配置git

    # git config
    SetEnv GIT_PROJECT_ROOT D:/repository/git_project
    SetEnv GIT_HTTP_EXPORT_ALL
    ScriptAliasMatch \
    "(?x)^/(.*/(HEAD | \
    info/refs | \
    objects/(info/[Apache Git server on Windows^/]+ | \
    [0-9a-f]{2}/[0-9a-f]{38} | \
    pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
    git-(upload|receive)-pack))$" \
    "C:/vcs/Git/libexec/git-core/git-http-backend.exe/$1"

    <Directory "C:/vcs/Git/libexec/git-core/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    #enable read/write access
    <Location />
    AuthType Basic
    AuthName "Git"
    AuthUserFile D:/my_tool/Apache2.2/passwd.git
    Require valid-user
    </Location>


    # config gitweb
    Alias /gitweb "C:/vcs/Git/share/gitweb"

    <Directory "C:/vcs/Git/share/gitweb/">
    AddHandler cgi-script .cgi
    <Files ~ "\.cgi$">
    Options +ExecCGI
    </Files>
    AllowOverride None
    Order allow,deny
    Allow from all
    DirectoryIndex gitweb.cgi
    </Directory>

  • 相关阅读:
    顺序队列的模板
    链式队列模板
    链式栈模板
    栈应用hanoi
    判断出栈顺序
    用栈实现四则运算
    两栈共享问题
    The Preliminary Contest for ICPC Asia Nanjing 2019
    Educational Codeforces Round 71 (Rated for Div. 2)
    HDU6583:Typewriter(dp+后缀自动机)
  • 原文地址:https://www.cnblogs.com/luowei010101/p/2815169.html
Copyright © 2020-2023  润新知