Support #597
Updated by Daniel Curtis over 10 years ago
The Arch wiki is a huge resource for many of my projects, so having an offline copy for those occasions I am not on the Internet is useful. This is a guide for installing the Arch wiki package and hosting it with nginx inside of a VM. This guide assumes the virtual Arch environment is already setup and at a root shell.
h2. Prepare the environment
* Ensure everything is up to date:
<pre>
pacman -Syu
</pre>
h2. Install Arch Wiki
* Install that arch-wiki-docs package:
<pre>
pacman -S arch-wiki-docs
</pre>
* Install nginx:
<pre>
pacman -S nginx
</pre>
* Edit the nginx config:
<pre>
nano /etc/nginx/nginx.conf
</pre>
#* And change the default location in the http server block:
<pre>
location / {
root /usr/share/doc/arch-wiki/html/en/;
index index.html index.htm;
autoindex on;
}
</pre>
*NOTE*: Make to include the autoindex line, since the arch-wiki-docs package does not have a proper index file.
* Start and enable nginx at boot:
<pre>
systemctl start nginx.service
systemctl enable nginx.service
</pre>
h2. Install RFC
* Install RFC:
<pre>
pacman -S rfc
</pre>
* Edit the nginx config:
<pre>
nano /etc/nginx/nginx.conf
</pre>
#* And add a location in the http server block for rfc:
<pre>
location /rfc {
root /usr/share/doc/rfc; /usr/share/doc/rfc/txt/;
index index.html index.htm;
autoindex on;
}
</pre>
*NOTE*: Make to include the +autoindex on;+ autoindex line, since the arch-wiki-docs package does not have a proper index file.