diff --git a/install.sh b/install.sh index ff5611e..19e59c9 100644 --- a/install.sh +++ b/install.sh @@ -504,9 +504,19 @@ echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/bash /usr/share/sniper/sniper *' > / echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/pkill *' >> /etc/sudoers.d/www-data-sniper chmod 440 /etc/sudoers.d/www-data-sniper +# Configure Apache Port 8888 +echo -e "$OKBLUE[*]$RESET Configuring Apache on port 8888... $RESET" +if ! grep -q "Listen 8888" /etc/apache2/ports.conf; then + echo "Listen 8888" >> /etc/apache2/ports.conf +fi + +cp $INSTALL_DIR/webui/ultyscan.conf /etc/apache2/sites-available/ultyscan.conf 2>/dev/null +a2ensite ultyscan 2>/dev/null + # Restart Apache systemctl restart apache2 2>/dev/null || service apache2 restart 2>/dev/null + # Get server IP for display SERVER_IP=$(hostname -I 2>/dev/null | awk '{print $1}') @@ -518,7 +528,7 @@ echo "" echo -e "$OKBLUE============================================$RESET" echo -e "$OKGREEN ULTYSCAN WEB INTERFACE$RESET" echo -e "$OKBLUE============================================$RESET" -echo -e "$OKBLUE URL:$RESET http://$SERVER_IP/ultyscan/" +echo -e "$OKBLUE URL:$RESET http://$SERVER_IP:8888/" echo -e "$OKBLUE Logs:$RESET /var/log/ultyscan/" echo -e "$OKBLUE Loot:$RESET /usr/share/sniper/loot/workspace/" echo -e "$OKBLUE============================================$RESET" diff --git a/webui/ultyscan.conf b/webui/ultyscan.conf new file mode 100644 index 0000000..126e44b --- /dev/null +++ b/webui/ultyscan.conf @@ -0,0 +1,13 @@ + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/ultyscan + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + ErrorLog ${APACHE_LOG_DIR}/ultyscan_error.log + CustomLog ${APACHE_LOG_DIR}/ultyscan_access.log combined +