1

Is there any way I can use apache2 on Laravel Valet ? I need to write some code to the .htaccess file. The site on our server uses apache but I am running Valet which uses nginx, so I cannot test it before putting it to the world.

whoacowboy
  • 6,982
  • 6
  • 44
  • 78
Epsilon47
  • 768
  • 1
  • 13
  • 28

1 Answers1

4

Nope.

Installation

Valet requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.

You could install apache and configure it to run on a different port, but you will lose the benefits of Valet.

Community
  • 1
  • 1
whoacowboy
  • 6,982
  • 6
  • 44
  • 78
  • Sure. I will lose the benefits of the valet. But I can run both: the Valet linked sites using nginx and also apache sites where I will have to access via vhosts or localhost? – Epsilon47 Jan 25 '18 at 15:44
  • yep, this is possible. but I'm curious: what do you want to write into the .htaccess file? often there is a way to port that over to nginx – Reduxx Jan 25 '18 at 16:02
  • Because the site is on the server that runs on apache server, on the other hand my local machine runs nginx and I do not want to edit it directly on the sharp server so I cannot try the code before pulling from sharp – Epsilon47 Jan 30 '18 at 11:44
  • @Epsilon47 Why do you lose the benefit? – Ponzio Pilato Jan 02 '21 at 20:17