Apache

Status
This thread has been locked.

Jayson

Supreme
Feedback score
17
Posts
1,258
Reactions
741
Resources
0
I want my VPS to host multiple domains and subdomains but have a different website for each, where do I put this :?
Code:
<VirtualHost *:80>
    # This first-listed virtual host is also the default for *:80
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot "/www/domain"
</VirtualHost>

<VirtualHost *:80>
    ServerName other.example.com
    DocumentRoot "/www/otherdomain"
</VirtualHost>
https://httpd.apache.org/docs/2.4/vhosts/name-based.html
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Tripps

SysAdmin | Developer
Premium
Feedback score
19
Posts
784
Reactions
313
Resources
0
Nginx is more stable and is more up to date then the default repositories of Apache. I also prefer Nginx over apache, but if the os is centos I use Apache since nginx is a bitch on centos.
 

Fire

Always DM me here before dealing via Discord.
Supreme
Feedback score
74
Posts
3,045
Reactions
1,745
Resources
0

Latouth

Troubled on Linux? Ask me!
Supreme
Feedback score
18
Posts
1,213
Reactions
504
Resources
0
Status
This thread has been locked.
Top