Difference between revisions of "Linksys AC Series Router Configuration Tips for OpenWRT"

m
no edit summary
m
Line 1,613: Line 1,613:


opkg install apache apache-utils apache-mod-ssl
opkg install apache apache-utils apache-mod-ssl
OR for a more complete installation: opkg install apache apache-icons apache-mod-deflate apache-mod-http2 apache-mod-ldap apache-mod-lua apache-mod-proxy apache-mod-proxy-html apache-mod-session-crypto apache-mod-ssl apache-mod-suexec apache-mod-webdav apache-suexec apache-utils


=====Configuration for Apache=====
=====Configuration for Apache=====
Line 1,978: Line 1,980:
For Redhat / CentOS / RockyOS and similar users who are used to having HTTPD stuff located in /var/www/html by default, below are some commands to put in the Startup of OpenWRT to make Apache stuff easier to find (if you're on 'auto pilot');
For Redhat / CentOS / RockyOS and similar users who are used to having HTTPD stuff located in /var/www/html by default, below are some commands to put in the Startup of OpenWRT to make Apache stuff easier to find (if you're on 'auto pilot');


* mkdir /tmp/www
*mkdir /tmp/www
* ln -s /usr/share/apache2/htdocs /var/www/html
*ln -s /usr/share/apache2/htdocs /var/www/html
* ln -s /usr/share/apache2/cgi-bin /var/www/cgi-bin
*ln -s /usr/share/apache2/cgi-bin /var/www/cgi-bin
* ln -s /usr/share/apache2/error /var/www/error
*ln -s /usr/share/apache2/error /var/www/error
* ln -s /usr/share/apache2/icons /var/www/icons
*ln -s /usr/share/apache2/icons /var/www/icons


...and the reason it's in startup is because the VAR Directory in OpenWRT is actually the TMP Directory (IE, VAR is a softlink / shortcut to TMP), so it disappears after rebooting.
...and the reason it's in startup is because the VAR Directory in OpenWRT is actually the TMP Directory (IE, VAR is a softlink / shortcut to TMP), so it disappears after rebooting.