Category : apache2

One of my project someone trying to access my index.php file in laravel. Logs:- { "ip":"45.155.205.108","url":"/index.php?s=/Index/thinkapp/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21", "agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" } { "ip":"45.155.205.108","url":"/?XDEBUG_SESSION_START=phpstorm", "agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" } { "ip":"54.81.156.74","url":"/", "agent":"python-requests/2.24.0" } anyone, please advise what security configuration needs ..

Read more

I am using apache2 and php artisan serve command to test my project. Have the next controller: <?php // file: HttpControllersAuthCtrl.php namespace AppHttpControllers; use IlluminateHttpRequest; use AppUser; // <– use IlluminateSupportFacadesAuth; class AuthCtrl extends Controller { public function login(Request $request) { $rules = [ ’email’ => ‘required|exists:users’, ‘password’ => ‘required’ ]; $request->validate($rules); $data = [ ..

Read more

When I’m trying to upload a file on my apache2, Laravel server I get this error: 413 Request Entity Too Large nginx/1.1.19 Which of course means my file is too large. But I changed php.ini max_file_uploads 20 post_max_size 20M upload_max_filesize 25M & sites-available/site.conf <VirtualHost *:80> ServerName site DocumentRoot /var/www/site/public <Directory /var/www/site/public/> Options Indexes FollowSymLinks MultiViews ..

Read more

When I make a request to the routes under /api the server responds with this error: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace. My .htaccess in /public folder is this: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> ..

Read more

I am working on my local server right now and trying to get rid of ‘/public/index.php’ from http://localhost/example/public/index.php/ in the url. I have followed content from the site: https://www.tutsmake.com/how-to-remove-public-from-url-in-laravel/ and added the config file laravelex.conf with the following content: <VirtualHost *:80> ServerName localhost ServerAdmin [email protected] DocumentRoot /var/www/example/public <Directory /var/www/example> Options Indexes FollowSymLinks MultiViews AllowOverride All ..

Read more

I would like to host my nuxt app which has laravel backend on my vps. I have done it and it works but when i have my .conf file for domain setup like this: <IfModule mod_ssl.c> <VirtualHost *:80> ServerName xxxxxxxxx Redirect permanent / https://xxxxxxxxx/ </VirtualHost> <VirtualHost *:443> ServerName xxxxxxxxx ServerAlias www.xxxxxxxxx ServerAdmin [email protected] DocumentRoot /var/www/htmlxxxxxxxxx/public ..

Read more

I have a problem when I deploy laravel with apache web server on Ubuntu 20 Server. My apache running on 8080 port. When I access the laravel directory the project is not directed to the public folder. Even though I have made a virtualhost configuration <VirtualHost 127.0.1.2:8080> ServerName admin-baledono.com ServerAlias www.admin-baledono.com ServerAdmin [email protected] DocumentRoot /var/www/html/admin-baledono.com/public ..

Read more

I have a locally created laravel RESTFUL API and I deployed it on my ec2 ubuntu server using git. I’ve set it like my main website.. /var/www/api.myapp.com/public_html/myapp-be and for its config I have this /etc/apache2/sites-available/api.myapp.com.conf. Almost all blogs and tutorials that I found about deploying laravel on apache2 ubuntu server were almost the same and ..

Read more

I have an API developed using Laravel which I can access it with /api and a react website that uses this API. When I deploy both to my apache server under Ubuntu 18.04, the sites configuration is like following: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/dashboard/build Alias /api /var/www/html/webapi/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/dashboard/build> ..

Read more

I’m new to VPS, I’ve set up an Apache2 on a ubuntu-focal-20-x86_64 and trying to host a site based on Laravel. Everything seems to be set, but when accessing the IP I get an error. I created a new Virtual host, followed these commands: sudo mv example /var/www/html/ sudo chgrp -R www-data /var/www/html/example/ sudo chmod ..

Read more

I have generated SSL Cert Using Letsencrypr and I installed it in apache using this configuration in default-SSL.conf file under the sites-enabled folder <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin [email protected] ServerName demo.qsinav.com DocumentRoot /var/www/html/qSinav-starter/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/letsencrypt/live/demo.qsinav.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/demo.qsinav.com/privkey.pem <FilesMatch ".(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> SSLProtocol ..

Read more