{"id":2297,"date":"2015-10-15T13:34:03","date_gmt":"2015-10-15T11:34:03","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2297"},"modified":"2016-04-27T21:37:46","modified_gmt":"2016-04-27T19:37:46","slug":"ubuntu-apache","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/ubuntu-apache\/","title":{"rendered":"Ubuntu: apache"},"content":{"rendered":"<pre class=\"brush:bash shell;toolbar: false\">\r\n# print apache version\r\napache2 -v\r\n# install module\r\nsudo apt-get install libapache2-svn\r\n# enable apache module\r\nsudo a2enmod headers\r\nsudo a2enmod dav_fs\r\nsudo a2enmod dav_svn\r\n# disable apache module\r\nsudo a2dismod php5\r\n# apache status\r\nsystemctl -l status apache2\r\n# apache start\r\nsudo systemctl start apache2\r\n# apache restart\r\nsudo systemctl restart apache2\r\n# list apache modules\r\nsudo apache2ctl -M\r\n# configuration\r\n# \/etc\/apache2\/apache2.conf\r\nServerName adrhc.go.ro\r\n# \/etc\/apache2\/envvars\r\nexport APACHE_RUN_USER****\r\nexport APACHE_RUN_GROUP****\r\n# \/etc\/apache2\/sites-available\/000-default.conf\r\n&lt;Location \/svn>\r\n        Header set X-UA-Compatible \"IE=edge\"\r\n        DAV svn\r\n        SVNParentPath \/mnt\/500GB\/SVNRepoLinux\r\n        SVNListParentPath on\r\n        AuthName \"Subversion repository\"\r\n        AuthType Basic\r\n        AuthUserFile \/********\/apps\/etc\/basic.auth.apache.passwords.txt\r\n        Require valid-user\r\n        SVNPathAuthz on\r\n        AuthzSVNAccessFile \/********\/apps\/etc\/svn-authz\r\n        Header set Cache-Control \"public,must-revalidate\"\r\n&lt;\/Location>\r\n\r\n# how to share a directory with DAV and apache 2.2.29\r\n# win7 url: https:\/\/adrhc.go.ro\/webdav\/\r\n# make sure WebClient windows service is started\r\nDavLockDB \/ffp\/var\/dav\/DavLock\r\nAlias \/webdav \/i-data\/md0\/seagate-ext4\/DAV-shares\r\n&lt;Directory \/i-data\/md0\/seagate-ext4\/DAV-shares>\r\n\tOptions -Indexes FollowSymLinks\r\n\r\n\tOrder Allow,Deny\r\n\tAllow from all\r\n\t\r\n\tDav On\r\n\r\n\tAuthType Basic\r\n\tAuthName \"webdav\"\r\n\tAuthUserFile \"\/ffp\/etc\/basic.auth.apache.passwords.txt\"\r\n\tRequire valid-user\r\n\r\n#\t&lt;Limit MKCOL PUT DELETE LOCK UNLOCK COPY MOVE PROPPATCH>\r\n#        Allow from all\r\n#\t&lt;\/Limit>\r\n\t\r\n#\t&lt;LimitExcept GET POST OPTIONS>\r\n#\t\tRequire user adr\r\n#\t&lt;\/LimitExcept>\r\n&lt;\/Directory>\r\n\r\n# how to share a directory with DAV and apache 2.4\r\n# win7 url: https:\/\/adrhc.go.ro\/webdav\/\r\n# make sure WebClient windows service is started\r\nAlias \/webdav \/********\/Documents\/DAV-shares\r\nDavLockDB \/var\/tmp\/DAV-shares-DavLockDB\r\n&lt;Directory \"\/********\/Documents\/DAV-shares\">\r\n\tOptions -Indexes +FollowSymLinks\r\n\tRequire all granted\r\n\tDav On\r\n\r\n\tAuthType Basic\r\n\tAuthName \"NSA310 admin\"\r\n\tAuthUserFile \"\/********\/apps\/etc\/basic.auth.apache.passwords.txt\"\r\n&lt;\/Directory>\r\n\r\n# how to connect from win 7 to share dav directory:\r\n# right-click on Network icon on desktop and choose \"map network drive\" menu\r\n# fill in \"Folder\" field with \"https:\/\/adrhc.go.ro\/webdav\/\"\r\n# check \"Connect using different credentials\"\r\n# press Finish\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># print apache version apache2 -v # install module sudo apt-get install libapache2-svn # enable apache module sudo a2enmod headers sudo a2enmod dav_fs sudo a2enmod dav_svn # disable apache module sudo a2dismod php5 # apache status systemctl -l status apache2 [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/ubuntu-apache\/#more-2297\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Ubuntu: apache<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,33],"tags":[],"class_list":["post-2297","post","type-post","status-publish","format-standard","hentry","category-howto","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2297"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2297\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}