By sahirug
I have a Laravel API I want to upload to a DigitalOcean droplet. I want to upload it on to a port on the IP. I am not sure if I am using the correct jargon when I say “port on the IP”
Basically, I want my API to connect when I type in xxx.xxx.xxx.xxx:port where port is the port number.
I have made a .conf file in /etc/apache2/sites-available. The code is below:
Listen xxx.xxx.xxxx.xxx:8037
<VirtualHost xxx.xxx.xxxx.xxx:8037>
ServerName www.servername.com
DocumentRoot "/var/www/html/hotelguide/public"
<Directory /var/www/html/hotelguide/public>
AllowOverride All
Order allow,deny
Require all granted
Allow from all
</Directory>
</VirtualHost>
I used 8037 as a random port as some were already in use (its not my droplet, its a droplet I share with other people)
I have not changed any other file, nor added any other file either
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Use SSH(SCP) or FTP to put your codebase in “/var/www/html/hotelguide/public” … and thats it …
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.