mirror of
https://github.com/DeNNiiInc/UltyScan.git
synced 2026-04-17 18:26:00 +00:00
Configure Apache to listen on port 8888 for UltyScan
This commit is contained in:
12
install.sh
12
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
|
echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/pkill *' >> /etc/sudoers.d/www-data-sniper
|
||||||
chmod 440 /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
|
# Restart Apache
|
||||||
systemctl restart apache2 2>/dev/null || service apache2 restart 2>/dev/null
|
systemctl restart apache2 2>/dev/null || service apache2 restart 2>/dev/null
|
||||||
|
|
||||||
|
|
||||||
# Get server IP for display
|
# Get server IP for display
|
||||||
SERVER_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
|
SERVER_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
|
||||||
|
|
||||||
@@ -518,7 +528,7 @@ echo ""
|
|||||||
echo -e "$OKBLUE============================================$RESET"
|
echo -e "$OKBLUE============================================$RESET"
|
||||||
echo -e "$OKGREEN ULTYSCAN WEB INTERFACE$RESET"
|
echo -e "$OKGREEN ULTYSCAN WEB INTERFACE$RESET"
|
||||||
echo -e "$OKBLUE============================================$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 Logs:$RESET /var/log/ultyscan/"
|
||||||
echo -e "$OKBLUE Loot:$RESET /usr/share/sniper/loot/workspace/"
|
echo -e "$OKBLUE Loot:$RESET /usr/share/sniper/loot/workspace/"
|
||||||
echo -e "$OKBLUE============================================$RESET"
|
echo -e "$OKBLUE============================================$RESET"
|
||||||
|
|||||||
13
webui/ultyscan.conf
Normal file
13
webui/ultyscan.conf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<VirtualHost *:8888>
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/html/ultyscan
|
||||||
|
|
||||||
|
<Directory /var/www/html/ultyscan>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/ultyscan_error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/ultyscan_access.log combined
|
||||||
|
</VirtualHost>
|
||||||
Reference in New Issue
Block a user