This will do the copy part of the files with modification date of today
forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"
Analyze suspicious files and URLs to detect types of malware, automatically share them with the security community.
Author: Administrator
Last update: 1970-01-01 01:00
When we talk about “drives” labeled C:, D:, and so forth, we’re actually talking about partitions, sections of the physical drive. Every hard drive in use has at least one partition. You can shrink that partition and create new ones out of the extra space. You’ll find this useful if you want to install more than one operating system, or if you want to truly separate programs and data.
But first, you need to take some precautions.
Author: Administrator
Last update: 1970-01-01 01:00
Cookies are usually delectable delights, but web cookies can sometimes be less than delightful. These little files hide in your computer so that your browser and websites can track your browsing sessions and save certain useful information, such as account names and passwords, for later retrieval. Although cookies may seem harmless overall, they can threaten your privacy if an attacker tries to use them maliciously.
Because of that threat, most modern browsers make cookie storage easy to understand and control. They also make it simple to remove individual website cookies, or even to delete cookies from your computer entirely. Here’s how you can perform the latter task in some of the most popular browsers.
Author: Administrator
Last update: 1970-01-01 01:00
The symptoms are as follows: you select a VPN connection in the system tray and click “Connect”. The “connecting” status goes on indefinitely without ever establishing a successful connection. The connection attempt is silently closed, and after you reopen the system tray you’re again offered the “Connect” option.
.
Author: Administrator
Last update: 1970-01-01 01:00
Author: Administrator
Last update: 1970-01-01 01:00
For Windows 10, Windows 8.1, Windows 8, Windows Server 2012 R2 or Windows Server 2012
To resolve this problem, use the inbox Deployment Image Servicing and Management (DISM) tool. Then, install the Windows update or service pack again.
Author: Administrator
Last update: 1970-01-01 01:00
%WINDIR%\WindowsUpdate.log
Author: Administrator
Last update: 1970-01-01 01:00
change the c:\pstools\psexec with the folder where PSTools is
c:\pstools\psexec \\remote_machine_name -u username -p password cmd
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes
Author: Administrator
Last update: 1970-01-01 01:00
change the c:\pstools\psexec with the folder where PSTools is
c:\pstools\psexec \\remote_machine_name -u username -p password cmd
net share XXX=C:\Users\username\AppData\Local
the share will be c:\XXX and point to ...Local
net share XXX /DELETE (space between XXX and /)
Author: Administrator
Last update: 1970-01-01 01:00
Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess
Author: Administrator
Last update: 1970-01-01 01:00
Author: Admin
Last update: 2024-03-16 15:01
Author: Admin
Last update: 2025-10-31 10:24
Author: Admin
Last update: 2025-10-31 10:26
Author: Admin
Last update: 2024-04-15 10:32
Author: Admin
Last update: 2026-03-28 16:05
Open CMD as Admin and type the 2 commands.
The 84.0.522.63 may be different on each pc, but just go to the last version found in the Application folder.
C:\Program Files (x86)\Microsoft\Edge\Application\84.0.522.63\Installer
setup.exe --uninstall --system-level --verbose-logging --force-uninstall
Author: Administrator
Last update: 1970-01-01 01:00
Search for "Internet Explorer Compatibility" in the Edge settings panel. Then setting the "Open Sites in Edge" setting to "Never."
Author: Administrator
Last update: 1970-01-01 01:00
Disable the VMD controller in the BIOS
Author: Administrator
Last update: 1970-01-01 01:00
Clear the EDGE browsing history (cache...) then reset the browser.
Author: Administrator
Last update: 1970-01-01 01:00
Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess
Author: Administrator
Last update: 1970-01-01 01:00
This will do the copy part of the files with modification date of today
forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"
Author: Administrator
Last update: 1970-01-01 01:00
Microsoft Safety Scanner is a scan tool designed to find and remove malware from Windows computers. Simply download it and run a scan to find malware and try to reverse changes made by identified threats.
Author: Administrator
Last update: 1970-01-01 01:00
Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess
Author: Administrator
Last update: 1970-01-01 01:00
This will do the copy part of the files with modification date of today
forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"
Author: Administrator
Last update: 1970-01-01 01:00
Author: Administrator
Last update: 1970-01-01 01:00
WinSCP is a popular SFTP client and FTP client for Microsoft Windows! Copy file between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols.
Author: Administrator
Last update: 1970-01-01 01:00
WeTransfer was founded in 2009 as the simplest way to send big files around the world. Today we’re a set of beautifully obvious tools to keep your ideas moving.
Author: Administrator
Last update: 1970-01-01 01:00
This will do the copy part of the files with modification date of today
forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"
Author: Administrator
Last update: 1970-01-01 01:00
Try these fixes:
The methods below have helped other users solve the problem. You may not have to try them all; just work your way down the list until you find the one that works for you.
Read more...
Author: Administrator
Last update: 1970-01-01 01:00
MySQL REPLACE() replaces all the occurrences of a substring within a string.
_______________________________________
SELECT * FROM schema.table;
UPDATE schema.table set column= replace(column, 'aaa', 'AAA') WHERE column='aaa';
_______________________________________
schema = is the chema db (e.g. company)
table = is the name of the table (e.g. users)
column = is the column name of the table (e.g. description)
aaa = is the string which will be replaced in the column
AAA = is the string who replace the "aaa"
reference: https://www.w3resource.com/mysql/string-functions/mysql-replace-function.php
Author: Administrator
Last update: 1970-01-01 01:00
1a) Connect to mysql (via localhost)
mysql -uroot -p
Create user
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
Grant permissions
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;
Flush privileges
FLUSH PRIVILEGES;
Although /etc/mysql/mysql.conf.d has these lines: comment it
#bind-address = 127.0.0.1
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server - Stack Overflow
Sometime, just need to updrade Workbench if you use it to access MYSQL.
Author: Administrator
Last update: 1970-01-01 01:00
mysqladmin -uroot -p flush-hosts
Author: Administrator
Last update: 1970-01-01 01:00
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'your_password' WITH GRANT OPTION;
Author: Administrator
Last update: 1970-01-01 01:00
mysql -u root -p
Author: Administrator
Last update: 1970-01-01 01:00
Step 1
Go to C:\Users\%USERPROFILE%\AppData\Roaming\MySQL\Workbench\ssh and empty known_hosts file
Step 2
In Workbench, go to Edit - Preferences - SSH and under the field “Path to SSH known hosts file" select the file from the above path
C:\Users\%USERPROFILE%\AppData\Roaming\MySQL\Workbench\ssh
Author: Administrator
Last update: 1970-01-01 01:00
Use this command to fix it
ALTER TABLE zl_report_user CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
or
First, check your collation of table and database, make it similar if they are different.
If you are getting error in stored procedure, than first check the Collations of your DB and the column on which you are making equal operation, if they are different change the column collate to whatever is your DB and then you have to re-create that stored procedure by dropping it.
Author: Administrator
Last update: 2023-11-17 11:41
Author: Admin
Last update: 2024-07-10 15:29
cp -r path/dirname to/path
Author: Administrator
Last update: 1970-01-01 01:00
rm -r path/dirname
Author: Administrator
Last update: 1970-01-01 01:00
sudo do-release-upgrade
Author: Administrator
Last update: 1970-01-01 01:00
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
df -h
https://askubuntu.com/questions/182446/how-do-i-view-all-available-hdds-partitions
Author: Administrator
Last update: 1970-01-01 01:00
sudo chown -R www-data:www-datagrp /var/www/html
Author: Administrator
Last update: 1970-01-01 01:00
sudo service cron start
sudo service cron stop
sudo service cron restart
Author: Administrator
Last update: 1970-01-01 01:00
sudo passwd username
userdel username
Author: Administrator
Last update: 1970-01-01 01:00
You need to edit /etc/ssh/sshd_config, and comment out the following line:
PermitRootLogin without-password
StrictModes yes
Just below it, add the following line:
PermitRootLogin yes
PasswordAuthentication yes
Then restart SSH:
service ssh reload
https://askubuntu.com/questions/469143/how-to-enable-ssh-root-access-on-ubuntu-14-04
Author: Administrator
Last update: 1970-01-01 01:00
sudo -i
passwd
or
sudo passwd
Author: Administrator
Last update: 1970-01-01 01:00
Try with this command:
sudo a2enmod cgiAuthor: Administrator
Last update: 1970-01-01 01:00
sudo lshw -C network
Author: Administrator
Last update: 1970-01-01 01:00
https://www.digicert.com/kb/csr-ssl-installation/ubuntu-server-with-apache2-openssl.htm
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
or
sudo add-apt-repository ppa:tomvlk/php-archive
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3
then
sudo a2dismod php7.0
sudo a2enmod php7.3
php -v
Author: Administrator
Last update: 1970-01-01 01:00
chown -h username:groupname foldername
Author: Administrator
Last update: 1970-01-01 01:00
root@linux:~$ sudo vi /etc/netplan/00-installer-config.yaml
or
root@linux:~$ sudo nano /etc/netplan/00-installer-config.yaml
network:
ethernets:
enp0s3:
addresses: [192.168.1.10/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.8.0]
version: 2
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt update
sudo apt upgrade
sudo apt install apache2
//enable Apache2 service
sudo systemctl enable apache2.service
Author: Administrator
Last update: 1970-01-01 01:00
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status
Author: Administrator
Last update: 1970-01-01 01:00
sudo chown www-data:www-data /var/www/html/ -R
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt install mysql-server
Author: Administrator
Last update: 1970-01-01 01:00
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04
sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo ufw app list
Available applications:
Apache
Apache Full
Apache Secure
OpenSSH
sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Apache ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Apache (v6) ALLOW Anywhere (v6)
sudo apt install mysql-server
sudo apt install php libapache2-mod-php php-mysql
sudo chown -R $USER:$USER /var/www/your_domain
sudo nano /etc/apache2/sites-available/your_domain.conf
<VirtualHost *:80>
ServerName your_domain
ServerAlias www.your_domain
ServerAdmin webmaster@localhost
DocumentRoot /var/www/your_domain
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo chown www-data:www-data /var/www/html/ -R
Author: Administrator
Last update: 1970-01-01 01:00
network:
ethernets:
eth0:
addresses: [192.168.1.100/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.8.0]
version: 2Author: Administrator
Last update: 1970-01-01 01:00
root@linux:~# route -n
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl
or
sudo apt install phpmyadmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04
Author: Administrator
Last update: 1970-01-01 01:00
$ sudo chown -h mj:mj test1 $ ls -l test* -rw-r--r-- 1 mj mj 0 Jul 27 08:47 test lrwxrwxrwx 1 mj mj 4 Jul 27 08:47 test1 -> test
Read more...
Author: Administrator
Last update: 1970-01-01 01:00
sudo umount /folder/
Author: Administrator
Last update: 1970-01-01 01:00
sudo mount -t cifs -o username=xxx //server/share/ /mnt/folder/share
Author: Administrator
Last update: 1970-01-01 01:00
sudo adduser www-data www-data
Author: Administrator
Last update: 1970-01-01 01:00
| firewall-cmd --state |
| firewall-cmd --permanent --add-port=80/tcp |
| firewall-cmd --permanent --add-port=443/tcp |
| firewall-cmd --reload |
| firewall-cmd --list-services |
| sudo systemctl start firewalld |
| sudo systemctl enable firewalld |
| sudo systemctl stop firewalld |
| sudo systemctl disable firewalld |
| sudo systemctl status firewalld |
Author: Administrator
Last update: 1970-01-01 01:00
| a2enmod ssl |
Author: Administrator
Last update: 1970-01-01 01:00
| reboot | sudo reboot |
| check HDD space | df -h |
| install ssh | sudo apt-get install openssh-server |
| restart mysql | sudo /etc/init.d/mysql restart |
| restart apache server | /etc/init.d/apache2 restart |
Author: Administrator
Last update: 1970-01-01 01:00
in config - database = change 'strict' to 'false'
Author: Administrator
Last update: 1970-01-01 01:00
close the apostrophe after Name
e.g. 'Employee Name', ['class' =>
Author: Administrator
Last update: 1970-01-01 01:00
create column in DB table <deleted_at> and activate SoftDelete in Model or comment/delete withTrashed in App Name
Author: Administrator
Last update: 1970-01-01 01:00
run php artisan key:generate (APP_KEY = ....) in .env file is empty (doesn't have key assigned)
Author: Administrator
Last update: 1970-01-01 01:00
change PHP version from an older one to newer.
Author: Administrator
Last update: 1970-01-01 01:00
Change App\Providers\EventServiceProvider:
Author: Administrator
Last update: 1970-01-01 01:00
The DATE should have hour, minute, second (the same format as in Controller or Provider file)
Author: Administrator
Last update: 1970-01-01 01:00
run php artisan make:auth
Author: Administrator
Last update: 1970-01-01 01:00
add to the conf.app (the form classes found on the internet) and run the composer update
composer require "laravelcollective/html"
https://stackoverflow.com/questions/28753767/laravel-5-class-form-not-found
Author: Administrator
Last update: 2023-10-27 15:11
add to the Controller the file Settings
Author: Administrator
Last update: 1970-01-01 01:00
no route is created
Author: Administrator
Last update: 1970-01-01 01:00
Change in StorexxxRequest return "false" to "true" on authorize function
Author: Administrator
Last update: 1970-01-01 01:00
check in the index file the name of the value (name="APPLICATION_ID")
Author: Administrator
Last update: 1970-01-01 01:00
go to vendor/laravel/framework/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php and change on public function username() the email with the value from login page form (ex: username)
Author: Administrator
Last update: 1970-01-01 01:00
add these lines in apache2\sites-enable\default.conf (or what is the defaul)
<Directory /var/www/html/framework/public/>
Options Indexes FollowSymLinks
AllowOverride
All Require all granted
</Directory>
https://laravel.io/forum/09-15-2015-removing-indexphp-from-url-laravel-5116
Author: Administrator
Last update: 1970-01-01 01:00
go to directory "laravel/bootstrap/cache" and delete config.php file.
Author: Administrator
Last update: 1970-01-01 01:00
add in index (blade) under @section('javascript') section this line: window._token = '{{ csrf_token() }}'; before window.route_mass_crud_entries_destroy = '{{ route('xxx.mass_destroy') }}';
Author: Administrator
Last update: 1970-01-01 01:00
sudo apt-get install zip unzip php-zip then run this sudo phpenmod zip and then sudo service apache2 restart
Author: Administrator
Last update: 1970-01-01 01:00
in StoreXXXRequest - public function authorize() - make it true
Author: Administrator
Last update: 1970-01-01 01:00
delete config/excel.php and re-publish it.
run php artisan vendor:publish --provider=Maatwebsite\Excel\ExcelServiceProvider
Author: Administrator
Last update: 1970-01-01 01:00
On Windows 10; Goto C:\ProgramData\ComposerSetup\bin and Edit: composer.bat - php -d memory_limit=-1 "%~dp0composer.phar" %*
Author: Administrator
Last update: 1970-01-01 01:00
install https://github.com/laravel/helpers
Author: Administrator
Last update: 1970-01-01 01:00
add the following to your App\Providers\RouteServiceProvider.php - public const HOME = '/home';
Author: Administrator
Last update: 1970-01-01 01:00
Run this
composer require laravelcollective/html
Author: Administrator
Last update: 1970-01-01 01:00
In Laravel 5+
{{ \Illuminate\Support\Str::limit($description, 50, '...') }}
or
{{ \Illuminate\Support\Str::limit($description, 50) }}
Author: Administrator
Last update: 1970-01-01 01:00
$start=Carbon::parse($a->date);
$end=Carbon::parse($c->dt);
$days=$start->diffInDays($end);Author: Administrator
Last update: 1970-01-01 01:00
chown -R www-data:www-data /var/www/html/laravel
Author: Administrator
Last update: 1970-01-01 01:00
sudo nano /etc/apache2/apache2.conf
Find the following code inside the editor:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Change to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory
apache - laravel the requested url was not found on this server - Stack Overflow
Author: Administrator
Last update: 1970-01-01 01:00
sudo nano /etc/apache2/sites-available/000-default.conf
<Directory /var/www/html/public/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
sudo a2enmod rewrite
apache - laravel the requested url was not found on this server - Stack Overflow
Author: Administrator
Last update: 2023-10-19 09:25
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".
run this command and see what is missing
composer check-platform-reqs
if is missing then run sudo apt-get install php-xml
xml is an example but can be replace by other missing dependencie
Author: Administrator
Last update: 1970-01-01 01:00
Mail::send($view, $data, function($message) use ($email, $name) {
$m->to($email, $name);
$m->from('youremail@example.com', 'Your Name');
$m->subject('Hi there');
})
Read more...Author: Administrator
Last update: 1970-01-01 01:00
\DB::statement("SET SQL_MODE=''");//this is the trick use it just before your query
or
In config\database.php --> "mysql" array
Set 'strict' => false to disable all.
Author: Administrator
Last update: 2023-10-19 09:22
Author: Admin
Last update: 2026-02-09 10:13
Author: Admin
Last update: 2024-04-23 09:43
Author: Admin
Last update: 2024-04-23 11:58
Author: Admin
Last update: 2024-04-24 14:46
Author: Admin
Last update: 2024-05-13 14:23
Author: Admin
Last update: 2024-05-15 09:15
Author: Admin
Last update: 2024-05-21 09:51
Author: Admin
Last update: 2024-05-22 19:00
Author: Admin
Last update: 2024-05-26 17:35
Author: Admin
Last update: 2024-06-02 10:38
Author: Admin
Last update: 2024-06-02 16:33
Author: Admin
Last update: 2024-06-02 17:37
Author: Admin
Last update: 2024-06-04 13:28
Author: Admin
Last update: 2024-06-06 12:05
Author: Admin
Last update: 2024-06-14 19:32
Author: Admin
Last update: 2024-06-19 08:22
Author: Admin
Last update: 2024-07-18 14:22
Author: Admin
Last update: 2024-10-14 13:42
Author: Admin
Last update: 2024-10-20 14:49
Author: Admin
Last update: 2024-10-22 19:47
Author: Admin
Last update: 2024-10-22 19:50
Author: Admin
Last update: 2024-10-23 14:14
Author: Admin
Last update: 2024-10-31 13:49
Author: Admin
Last update: 2024-10-31 20:13
Method 1: Start Outlook in safe mode following steps mentioned below and verify whether issue re-occurs.
* Hold Windows key + R.
* Copy and paste, or type the following command in the Open box, and then press Enter
Outlook /safe
Note: There is a space between Outlook and '/'.
If Outlook works as expected in safe mode, disable the add-ins by following steps mentioned below and check if it works as expected.
a) Click on File menu, click Options, Add-ins,Go button besides Manage: Com-in Add.
b) Check if there are add-ins listed, clear the checkbox.
c) Close the Office program and restart it.
d) Enable each add-in one at a time, restart the Outlook, and repeat the above procedure. If the issue reappears again, it will help you to determine which add-in is causing this issue.
Author: Administrator
Last update: 1970-01-01 01:00
Author: Admin
Last update: 2024-03-16 15:01
Stop Cron.sh and Daemon.pl
Then edit the module
CODE: SELECT ALL
sudo nano /opt/otrs/Kernel/System/Console/Command/Maint/Email/MailQueue.pm
Searched for the string Message sending already in progress! Skipping and just before the "if (%PID)... "line preceding it and add the code to force delete the PID (Process ID).
CODE: SELECT ALL
...
my %PID = $PIDObject->PIDGet(
Name => 'MaintMailQueueSending',
);
## This is new...
my $ForceDeletePIDOnce = $PIDObject->PIDDelete(
Name => 'MaintMailQueueSending',
Force => 1,
);
# ... up to here
if (%PID) {
die "Message sending already in progress! Skipping...\n";
}
...
Saved and ran it
CODE: SELECT ALL
su -c "./otrs.Console.pl Maint::Email::MailQueue --send --verbose" -s /bin/bash otrs
It gave the error message anyway but the process was deleted.
Finally edited /opt/otrs/Kernel/System/Console/Command/Maint/Email/MailQueue.pm again and removed the lines I just added.
Saved, reboot.... and it seems to be working.
https://community.znuny.org/viewtopic.php?f=62&t=39530
Author: Administrator
Last update: 1970-01-01 01:00
shell>cd /opt/otrs/
su -c "bin/otrs.Daemon.pl stop" -s /bin/bash otrs
su -c "bin/otrs.Daemon.pl start" -s /bin/bash otrs
/opt/otrs/bin/Cron.sh stop
/opt/otrs/bin/Cron.sh start
Author: Administrator
Last update: 1970-01-01 01:00
shell> cd /opt/otrs/
shell> su -c "bin/otrs.Console.pl Maint::Email::MailQueue --list" -s /bin/bash otrs
shell> su -c "bin/otrs.Console.pl Maint::Email::MailQueue --send" -s /bin/bash otrs
Author: Administrator
Last update: 1970-01-01 01:00
Comment the line RewriteEngine On in 000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
#RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE,R]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Author: Administrator
Last update: 1970-01-01 01:00