apache2

Laravel-websocket can't connect to Azure VM through apache2

六月ゝ 毕业季﹏ 提交于 2020-06-17 15:13:12
问题 I want to implement Laravel-WebSocket + pusher substitute (https://github.com/beyondcode/laravel-websockets) with Laravel-echo on an Azure VM with apache2 reverse proxy. However, no matter what I tried, they just can't connect. It's always between error 404, 502 and 500 when a client-side listener tries to connect. This VM only allows entry through 80 and 443. Therefore, I did reverse proxy which redirects '/WebSocket' to http://127.0.0.1:6001 (where the WebSocket runs. TCP) The server is

PHPIniDir broken under windows 7?

耗尽温柔 提交于 2020-06-13 19:43:22
问题 I had a server running on a Windows XP machine using Apache2 with PHP and MySQL. I've recently upgraded to Windows 7 and have been having trouble getting it to work. Apache works fine and PHP works, but I can't seem to get it to work with a php.ini file. When I set PHPIniDir to a directory with a php.ini file, the Apache service does NOT start. When I set PHPIniDir to a directory with NO php.ini file, the Apache service does start. When I leave out PHPIniDir , the Apache service does not

CodeIgniter removing index.php from url

放肆的年华 提交于 2020-05-24 07:30:08
问题 My current urls look like this [mysite]index.php/[rest of the slug] . I want to strip index.php from these urls. mod_rewrite is enabled on my apache2 server. In config , $config['index_page'] = ''; My codeignitor root .htaccess file contains, RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L] But still it is not working. Where am I going wrong? 回答1: Try the following Open config.php and do following replaces $config[

url routing with PHP and .htaccess

五迷三道 提交于 2020-05-17 06:01:24
问题 I want to use the MVC pattern to divide my logic, from the presentation and the data. Well, i've been searching for i while. But the truth is that i don't even know what to search. I'm trying to setup a MVC Framework in php. I'm following a tutorial on youtube, and i'm stuck at the routing point. I've read a LOT of guides, and every single one teaches things in different ways, creating only more confusion. The point is this: i have a .htaccess file that contains some directives (but the

URL Encoding with Underscores in a Directory Name?

感情迁移 提交于 2020-05-12 20:33:53
问题 We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but then when the software outputs the directory to the Apache server, it would become "andy%5Ftest". Unfortunately, when you access the url on the server it ends up

URL Encoding with Underscores in a Directory Name?

房东的猫 提交于 2020-05-12 20:30:17
问题 We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but then when the software outputs the directory to the Apache server, it would become "andy%5Ftest". Unfortunately, when you access the url on the server it ends up

How to Forward HTTP methods from apache2 using proxy_ajp to tomcat

浪尽此生 提交于 2020-04-30 06:38:47
问题 I have configured and web server with apache2 then proxy request to tomcat with ajp protocol like this: <host *:443> ProxyRequests On ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all AllowMethods GET PUT DELETE POST OPTIONS </Proxy> ProxyPass / ajp://some_vhost:8009/ ProxyPassReverse / ajp://some_vhost:8009/ All request received from apache2 server forward to GET HTTP method to tomcat, so if you are listening for some rest operation a post method this behavior causes a non

How to Forward HTTP methods from apache2 using proxy_ajp to tomcat

帅比萌擦擦* 提交于 2020-04-30 06:37:47
问题 I have configured and web server with apache2 then proxy request to tomcat with ajp protocol like this: <host *:443> ProxyRequests On ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all AllowMethods GET PUT DELETE POST OPTIONS </Proxy> ProxyPass / ajp://some_vhost:8009/ ProxyPassReverse / ajp://some_vhost:8009/ All request received from apache2 server forward to GET HTTP method to tomcat, so if you are listening for some rest operation a post method this behavior causes a non

Codeigniter website showing error 404 on Google Virtual Instant Live Server

痴心易碎 提交于 2020-04-18 12:33:54
问题 When I go open up my Codeigniter website on my localhost using Wamp and XAMPP, both works. But when I move it to Ubuntu on Google Cloud, it only works for the first page, afterward, it shows the error when going to another page. I'm using: Codeigniter ver 3 Apache2 php7.3 Does anyone know what might have caused this? Other Pages 回答1: It would be ideal if you check first the class name and the record name that both should be title case (start with a capital letter). So if the class name is

Codeigniter website showing error 404 on Google Virtual Instant Live Server

无人久伴 提交于 2020-04-18 12:33:46
问题 When I go open up my Codeigniter website on my localhost using Wamp and XAMPP, both works. But when I move it to Ubuntu on Google Cloud, it only works for the first page, afterward, it shows the error when going to another page. I'm using: Codeigniter ver 3 Apache2 php7.3 Does anyone know what might have caused this? Other Pages 回答1: It would be ideal if you check first the class name and the record name that both should be title case (start with a capital letter). So if the class name is