Linux服务器中mod_qos配置(.conf)的位置是什么?

时间:2018-10-26 13:33:54

标签: linux apache

我想使用mod_qos与Apache一起实现速率限制。为此,我想在Apache的配置中添加以下几行:

add = ("INSERT INTO server_stats_servers "
            "(Owner, ServerID, MessageID, Channel, ServerIP, ServerPort, ServerName, DiscordName, Key)"
            "VALUES (%(Owner)s, %(ServerID)s, %(MessageID)s, %(Channel)s, %(ServerIP)s, %(ServerPort)s, %(ServerName)s, %(DiscordName)s, %(Key)s)")
    values = {"Owner": owner,
            "ServerID": serverid,
            "MessageID": messageid,
            "Channel": channel,
            "ServerIP": ip,
            "ServerPort": port,
            "ServerName": servername,
            "DiscordName": discordname,
            "Key": key,}
    cursor.execute(add, values)
    cnx.commit()

我应在哪个配置文件中添加这些行?

1 个答案:

答案 0 :(得分:0)

我认为您需要自己创建文件

vi /etc/httpd/conf.d/qos.conf

然后粘贴您的配置